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)