I wanted some tool which could check all the standard violations that I make while I write code. After some search I found Eclipse Checkstyle Plugin suitable to my requirement.
I have not yet tried out using this. Information about this tool was found in this site
http://checkstyle.sourceforge.net/
Can some on who has used this tool tell me whether this tool works fine for applications that have Generics and wrapper classes.
Oh Yes, we use Checkstyle regularly in our project. This proves it works fine for 1.5.
Related
I'm just about starting to learn Java. Reading about, I installed Netbeans.
Running Apache Netbeans IDE 11.2.
The Java version is 13.0.2.
I'm promptly follow the Quickstart guide on the netbeans website.
File>>New project>> Java >> Java Application.
Errhmm, I don't have this 'Java' option. All I have is
So what's the difference between Java & Java with Maven/Cradle/Ant . At this point in time, I intend to start with basics of Java programming and then move on from there. SO which option am I meant to be starting with? If I'm missing Java, how can I add it ? Going through the installation procedures didn't give me any option to choose from.
p:s - this is all running on Mac OS Catalina
You can start with any of Java with ... option. I use Java with Ant option.
Maven, Gradle, Ant are build-tool addons i.e. they provide additional support if you intend to use any of these as your build tool.
When you choose Java with Ant option, it will let you create, compile, debug and run your Java programs without requiring anything additional. After using this option, you will get an interface as shown in the screenshot given below:
Maven, Gradle and Ant are build tool which allows you to compile, unit test, package and (if you like) even deploy your Java applications (they do support other languages btw).
I suggest you to start with one of those (Maven is very popular and probably a little bit easier than the others) instead of relying on your Java IDE specific features.
Once you master a build tool you can change IDE (IntelliJ is also a very good option ;-)) and will still work as before. You also find plenty of resources and help (like Stackoverflow) if you need hit some problems.
Best of luck!
I'm currently working on some projects using the Eta programming language.
It is a new purely functional programming language that runs on the JVM. Because of this, sometimes it requires to write Java code to make wrappers.
Currently, I'm working using Emacs, but for Java, I think that IntelliJ is the best IDE out there.
The thing is, Eta relies on a custom build tool, called Etlas. And although there are plugins for SBT and Gradle, Etlas works the best for Eta.
Etlas handles maven dependencies itself. Is there a way of adding this build tool to IntelliJ so it can see where the dependencies were downloaded and one can use the Java autocompletion when working on Java code?
Building Java projects straight from the IDE in IntelliJ has been nice. It's fast and it just works. I wasn't able to find any documentation on how IntelliJ does these default builds. I'm guessing it uses Ant? What I want to do is automate this fast and painless build process for anyone who downloads my project. Is that possible?
I've usually used Maven, but it's very slow and error prone. I actually wasn't even able to convert this to a Maven project, because Maven refuses to find JUnit despite setting up the dependency according to examples in the official docs. I also tried to generate Ant build files from the IDE, but those do not work out of the box and after googling a bit, seems like that is not a good approach?
IntelliJ IDEA has its own build system, called JPS. It has limited support for automatic download of dependencies and it's really hard to invoke from the command line, so it's unlikely to be the best option for everyone who downloads your project, unless you want to force them to use IntelliJ IDEA.
I've been looking into scala lately and from the conciseness and language features I'm completely thrilled.
I have netbeans 8.0 running on ubuntu 12.04 and downloaded scala, edited netbeans.conf (netbeans_default_options="-J-Dscala.home=...), installed plugins from plugin manager inside netbeans (ALL OF THEM). Then, I created scala project (not maven one) and tried out autocomplete. It works, compiles, runs, however, it shows no document found in autocompletion.
This is how I added javadocs Tools > Scala platforms > javadoc tab
I tried adding following ways:
added the entire scala api doc zip from http://downloads.typesafe.com/scala/2.11.2/scala-docs-2.11.2.zip
extracted the previous zip to scala-home folder under $SCALA_HOME/docs/javadocs/scala-docs-2.11.2 and added that
same as 2 but added $SCALA_HOME/docs/javadocs/scala-docs-2.11.2/api in netbeans
None of these pick up documentation! Of course, I could live without it, but it's such a killer for such a concise language where I could just find out stuff instantly from autocompletion. Also, I don't want to use eclipse special ide for scala because I don't want to throw out all the experience with netbeans out of the window and learn new IDE.
P.S. - Netbeans navigator also seem not to work in scala.
And I wonder why there's so little content on google for such a wonderful language?
There is no need to change to IntelliJ. Use the right build tool -sbt or Maven- and everything works fine.
In Netbeans you can use e.g. free Application Servers.
Netbeans support for scala seems pathetic so I just decided to jump to IntelliJ IDEA. It was little bit of learning curve but I'm glad I did because now everything was working (autocomplete, documentation, awesome SBT support etc. etc.)
I need to know how to use an an Ant tool for preprocessing in Blackberry. I have a project which needs to be used in 4.6 and 5.0 versions of Blackberry, since JDE4.6 doesn't support preprocessor. I need to know how we can use Ant tool in Eclipse?
Any sites or example will do.
I referred this site.
http://www.blackberryforums.com/developer-forum/138210-setup-up-eclipse-blackberry-development.html
and
http://bb-ant-tools.sourceforge.net/docs
This both links will be very helpful to you as a use Ant tool in blackberry eclipse.
Eclipse has a versioning preprocessor plugin. It's like a preprocessor who's only commands are #define and #ifdef
However I wanted something more myself. I don't know how to use Ant, but I did just manage to get the C preprocessor working in Eclipse on windows for java, using the non-Ant Builders and some glue in Ruby. I wanted it for an android project, maybe for similar reasons to why you would want it for Blackberry.
Since I was looking for an answer on Stackoverflow before I rolled my own and didn't find one, I'm copying my post into a few questions like this one:
https://stackoverflow.com/a/10497206/1137626