Ubuntu10.10 configure JRE, JDK, and Eclipse

Source: Internet
Author: User
In Ubuntu10.10 configure JRE, JDK, Eclipse process: 1, install JDK 1.1, download the relevant JDK to the official website, download here is the jdk-6u23-linux-i586.bin. Website: http://www.oracle.com/technetwork/java/javase/downloads/index.html1.2?create in the administrative administratorpersonal folder

Configure JRE, JDK, and Eclipse in Ubuntu 10.10:

  1. Install JDK

1.1, to the official website to download the relevant JDK, download here is the jdk-6u23-linux-i586.bin.

Website:Http://www.Oracle.com/technetwork/java/javase/downloads/index.html

1.2 create a "Java folder" in the "administrator personal folder" (I .e., location-> main folder-> administrator );

Place the downloaded jdk-6u23-linux-i586.bin in this Java folder.

(The path can be modified according to your actual situation. Here we use the Java folder under administrator as an example)

1.3 open the terminal (Application> attachment> Terminal)

Input: sudo sh jdk-6u23-linux-i586.bin.

(The user password to be entered may be encountered)

 2. Set system variables in the JAVA_HOME Environment

2.1. Here, Ctrl + H can be used to view hidden files. It is a useful shortcut key.

Input: sudo gedit/etc/environment

Add:

Export JAVA_HOME =/home/administrator/Java/jdk1.6.0 _ 23

Export JRE_Home =/home/administrator/Java/jdk1.6.0 _ 23/jre

Export CLASSPATH = $ CLASSPATH: $ JAVA_HOME/lib: $ JAVA_HOME/jre/lib

That is

2.2. Similarly, modify the second file

Input: sudo gedit/etc/profile

Add the following statement before umask 022:

Export JAVA_HOME =/home/administrator/Java/jdk1.6.0 _ 23

Export JRE_HOME =/home/administrator/Java/jdk1.6.0 _ 23/jre

Export CLASSPATH = $ CLASSPATH: $ JAVA_HOME/lib: $ JAVA_HOME/jre/lib

Export PATH = $ JAVA_HOME/bin: $ JAVA_HOME/jre/bin: $ PATH: $ HOME/bin

That is

2.3 log out of the user and check the JDK version.

Input: java-version

That is

(JRE and JDK are successfully installed)

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.