Tutorials to .com

Tutorials to .com » Os » Ubuntu » Ubuntu Linux is installed in the Java and Eclipse

Ubuntu Linux is installed in the Java and Eclipse

Print View , by: iSee ,Total views: 14 ,Word Count: 437 ,Date: Tue, 2 Jun 2009 Time: 8:22 AM

ubuntu during installation, as the same as most Linux distributions will install GNU version of Java. The usefulness of the java too low, especially for developers, it is not much help. In Ubuntu, the installation of SUN java is a very easy thing. The first step:

sudo apt-get install sun-java5-jdk

After installation, select the default java:

sudo update-alternatives --config java

And then configure the environment variables:

sudo vim /etc/environment

Add the following two lines:


Save exit.

Configuration after the installation of Eclipse. Installation is very simple:

sudo apt-get install eclipse

Although at this time the newly installed java system has become the default jvm, but Eclipse does not use update-alternative set jvm to start their own, while using a previous GNU Java. 1.4.2 the GNU Java is realized, and far less in terms of performance on the achievement of SUN. In order to start the SUN Java using Eclipse, we also need to continue configuration. SUN Java completely first set to the default system JDK:

sudo update-java-alternatives -s java-1.5.0-sun

And then edit the JVM configuration file:

sudo vim /etc/jvm sudo vim /etc/jvm

Will document


The line moved to the top of block configuration. Eclipse ignores Ubuntu as a result of a common Java settings (looks like a bug), we need to continue to edit the Eclipse file java_home:

sudo vim /etc/eclipse/java_home

Same as above, will be


The line moved to the top of the document. All after the completion of the installation configuration, Ubuntu on the Java development platform for the complete basic.

Ubuntu Articles

Can't Find What You're Looking For?

Rating: Not yet rated


No comments posted.