Install Eclipse &java Environment configuration under Ubuntu

Source: Internet
Author: User

One of the previous blogs wrote about the configuration of installing Eclipse and Java environments under Ubuntu. It was installed on the Internet, of course, but also can be successful.

Recently gave the computer to the person, just good in their own computer installed once again, the only consolation is that eclipse and JDK and Ubuntu version number has been updated, this time also in other ways to install the configuration

First step Download

The JDK to download the latest version of Eclipse and JDK has reached 1.8.0_05. Eclipse has also been upgraded to Luna Ubuntu with 14.4

Eclipse:http://www.eclipse.org/downloads/ here will encounter the option of prompting donations, shameful and did not donate, and so the elder brother Rich.

JDK: Ability to select a direct network installation $sudo apt-get Install OPENJDK-6-JDK

Just install that one, I'll do it first. Eclipse

Basically no special decompression tar-xvf eclipse .../usr/local

And then you can go in. Directly executing the file name is called Eclipse's ability. can also build a soft link to the desktop to go

To do this: sudo ln-s the path to the Eclipse path desktop

There's no JDK in here. It seems like you can't show that nice icon, just a default app icon

Then install the key JDK

There's nothing special about this process. Just unzip the file and set the environment variable to be able to


I unzipped it to/home/xuww/java.


After the decompression is the environment variable configuration, with sudo gedit/etc/profile to open the profile file.


Add, for example, the following statement at the end of the file:


Java_home=/home/xuww/jdk1.8.0_05

Export JRE_HOME=/HOME/XUWW/JDK1.8.0_05/JRE

Export classpath= $JAVA _home/lib: $JRE _home/lib: $CLASSPATH

Export path= $JAVA _home/bin: $JRE _home/bin: $PATH

and then use Source/etc/profileto run the newly modified initialization file again (Profile)If we don't do this, we need to restart the system.

I can test the version number with the command java-vision test.

If not, then change one more file.

sudo gedit/etc/environment



Path=/home/xuww/java/jdk1.8.0_05
classpath=.:/ Home/xuww/java/jdk1.8.0_05
Java_home=/home/xuww/java/jdk1.8.0_05

Save exit, enter the following command to take effect immediately

SOURCE ~/.BASHRC


Plus a couple of lines, just not normally.

And now it's all over.

Install Eclipse &java Environment configuration under Ubuntu

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.