Installation of Eclipse in Ubuntu environment (configuration Jdk8,eclipse)

Source: Internet
Author: User

Last weekend, in order to learn to dress up the system Ubuntu Kylin 14.1 version. The first time I contacted Linux, it took me 2 days to get familiar with some basic commands and waste a lot of time.

For Linux beginners, the process of installing eclipse, there must be a lot of problems, Baidu results a lot, a variety of, but really suitable for very few useful. Rock is here to share the problems and installation steps I shipped during the installation process to the novice, so that you can reduce the time required for installation (it took me 4 hours to fully configure ...). Good pit).

First step: Download eclipse

: http://www.eclipse.org/downloads/. Choose the 32-bit or 64-bit you need.

Part II: Download JDK

Ubuntu Kylin comes with OpenJDK 7. Think do not need to replace SUNJDK directly ignore this step, if you want to ask OpenJDK and Sunjdk own Baidu (Rock also not too understand, but if you want to develop HODOP still need to change sunjdk). : Jdk8 (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html), select the version you want. Don't forget to accept License agreement.

Part III: Installation configuration of the JDK:

1. Extract the JDK to the file:/USR/LIB/JVM

$ CD/USR/LIB/JVM && sudo tar-zxvf ~/download/jdk-*.tar.gz

(If there is no JVM file, the JVM file will be created yourself)

2, configuring the JDK

$ sudo vi ~/ETC/.BASHRC

(Note: There are also changes in the $ sudo vi/etc/profile, the difference: The Etc/profile setting method is valid for all login users, ~/.BASHRC only valid for the current user)

Open the configuration file and enter it at the end:

Export Java_home=/usr/local/bin/sun-jdk1.6.0_31

Export Jre_home= $JAVA _home/jre

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

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

(Note: Orange font for JDK decompression install JDK under the JVM)

In Terminal input:

$ source ~/.BASHRC

Make it effective.

3.$ java-version Search for JDK version. If the display version is the same as the installation version, the configuration is complete. If the OPENJDK version is still displayed, perform step 4.

Fourth: Configuring the default JDK (Sun JDK)

1, in terminal input:

$ sudo update-alternatives--install/usr/lib/java Java/usr/lib/jvm/jdk1.7.0_17/bin/java 300

$ sudo update-alternatives--install/usr/lib/javac Javac/usr/lib/jvm/jdk1.7.0_17/bin/javac 300

2. Execute the following command to configure the default JDK

$ sudo update-alternatives--config java

The JDK version is listed, which is labeled "*" as the default JDK. If you want to maintain the current default JDK, press ENTER directly, otherwise enter the number of the corresponding JDK to set it as the default version.

Fifth Step: Installation and configuration of Eclipse

SUNJDK configured, install eclipse now

1. Unzip Eclipse to/usr/opt

$CD/usr/opt && sudo tar-zxvf ~/download/eclipse-*.tar.gz

2. Start Eclipse

$/usr/opt/eclipse/eclipse

3. Lock Eclipse

You can lock eclipse directly on the left launcher after you start eclips.

Here, your eclipse is installed and ready to use. Some friends said to the Chinese package, personal recommendation with the original English interface, time is long you also familiar. The automatic hints feature of Eclipse is quite powerful and powerful enough for you to use without it, which can save you nearly 1/3 of your development time. The specific configuration method I was introduced. Recommended Link: http://www.cnblogs.com/likwo/archive/2010/04/28/1722802.html (Eclipse Auto Prompt configuration method)

Installation of Eclipse in Ubuntu environment (configuration Jdk8,eclipse)

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.