What is a good Java Compiler for Linux (Ubuntu)?
Tuesday, May 10th, 2011 at
21:48
Hi! I’m just looking for a good Java Compiler. Is there any good compilers for Java available for Linux Operating Systems? I want to make applications using Java, but just can’t find an appropriate compiler.
I am thinking of "Eclipse". Is that a good Java compiler, or should I consider something else?
Thank you in advance!
Tagged with: compilers • eclipse • java compiler • Linux • linux operating systems • using java
Filed under: Linux Applications
Like this post? Subscribe to my RSS feed and get loads more!
Get the official JDK (Java development kit) from oracle. That is the best compiler because they are the ones that manage/own it. As the other guy stated, Eclipse is an IDE (integrated development environment), not a compiler. An IDE is a program that lets you easily edit, compile, debug your code, and manage the code all from one program by using 3rd party compilers and tools. If you only downloaded the JDK, you would have to use a text editer (gedit, xemacs, etc.) to edit your code and then compile it from the command prompt. Debugging would also have to be done from the command prompt. It can be done, but it is a pain in the butt. I would recommend using an IDE.
Multiple versions of the JDK exist and one of them includes the Netbeans IDE. You can try that one, or you can download/install one of the JDKs and then install the Eclipse IDE. The two IDEs work a bit differently, but either can be useful…. try both if you like and see which one you prefer.
The official Sun (now Oracle since Sun bought them) Java SDK
> I am thinking of "Eclipse". Is that a good Java compiler, or should I consider something else?
It isn’t a compiler at all, it is an IDE. It has a button it it marked compile, but that just runs the compiler you choose.
Compared with other IDEs it is slow but powerful.
Try this site. It explains how to get the offical JDK from Sun (I mean Oracle).
http://happy-coding.com/install-sun-java6-jdk-on-ubuntu-10-04-lucid/
After you’ve done this open a terminal and type this:
java -version
You will get a message similar to this if you have installed it correctly:
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)