In Ubuntu, how does one manually install JDK1.7? This article is the whole process of my experience. Ubuntu version: 12.04LTSJDK version: 1.7.0 _ 04 Installation Directory:/usr/local/development/jdk1.7.0 _ 04 install JDK1.7 process 1. Open the web site http://www.Oracle.com/technetwork/java/javase/downloads/jdk-7u4-
In Ubuntu, how does one manually install JDK1.7? This article is the whole process of my experience.
Ubuntu version: 12.04 LTS
JDK version: 1.7.0 _ 04
Installation Directory:/usr/local/development/jdk1.7.0 _ 04
JDK1.7 Installation Process
1. Open the websiteHttp://www.Oracle.com/technetwork/java/javase/downloads/jdk-7u4-downloads-1591156.htmlTo download the corresponding JDK file.
2. decompress the downloaded file/Usr/local/development/jdk1.7.0 _ 04Directory.
3. Create a file/Etc/profile. d/development. sh, Copy the following content to the file.
export JAVA_HOME=/usr/local/development/jdk1.7.0_04export JRE_HOME=$JAVA_HOME/jreexport CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATHexport PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
4. restart the computer and run the commandJava-versionCheck whether JDK is successfully installed.