linux-ubuntu-myeclipse8.5 Installation

Source: Internet
Author: User

First step: Download jdk-7u79-linux-x64.tar.gz
    1. Wget-c

(Note: If the download is not down, it is recommended to use Thunderbolt download, and then copied to the Linux system.) )

Step Two: Unzip the installation
    1. sudo tar zxvf jdk-7u79-linux-x64.tar.gz

    2. Cd/usr/lib/jvm

Step Three: Modify environment variables
    1. Vim ~/.BASHRC

Add to:

    1. Export java_home=/usr/lib/jvm/jdk1.7.0_79

    2. Export JRE_HOME=${JAVA_HOME}/JRE

    3. Export Classpath=.:${java_home}/lib:${jre_home}/lib

    4. Export Path=${java_home}/bin: $PATH

Save the exit and enter the following command to take effect immediately.


Fourth Step: Configure the default JDK version

Since there may be a default JDK in Ubuntu, such as OPENJDK, we will do the following to set up our installed JDK as the default JDK version.
Execute code:

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

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

    3. sudo update-alternatives--install/usr/bin/jar Jar/usr/lib/jvm/jdk1.7.0_79/bin/jar 300

    4. sudo update-alternatives--install/usr/bin/javah javah/usr/lib/jvm/jdk1.7.0_79/bin/javah 300

    5. sudo update-alternatives--install/usr/bin/javap JAVAP/USR/LIB/JVM/JDK1.7.0_79/BIN/JAVAP 300

Execute code:

    1. sudo update-alternatives--config java

The various JDK versions are listed as follows:

  1. [Email protected]:~$ sudo update-alternatives--config java

  2. There are 3 candidates that can be used to replace Java (providing/usr/bin/java).

  3. Select Path Priority state

  4. ------------------------------------------------------------

  5. * 0/usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 Auto mode

  6. 1/usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 Manual Mode

  7. 2/usr/lib/jvm/java-6-sun/jre/bin/java 63 Manual Mode

  8. 3/usr/lib/jvm/java-7-sun/bin/java 300 Manual Mode

  9. To maintain the current value [*] press ENTER, or type the number of your choice: 3

  10. Update-alternatives: Use/usr/lib/jvm/java-7-sun/bin/java to provide/usr/bin/java (Java) in manual mode.

Fifth Step: Test

[Plain] view plaincopy

    1. [email protected]:/usr/lib/jvm/jdk1.7.0_79$ java-version

    2. Java Version "1.7.0_79"

    3. Java (TM) SE Runtime Environment (build 1.7.0_79-b15)

    4. Java HotSpot (TM) 64-bit Server VM (build 24.79-b02, Mixed mode)

Sixth Step: Install MyEclipse

This article is from the "Mr_computer" blog, make sure to keep this source

linux-ubuntu-myeclipse8.5 Installation

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: 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.