To download the historical version of the JDK:
Http://jingyan.baidu.com/article/9989c746064d46f648ecfe9a.html
2. Download the JDK and pass it to the root directory.
3. Create a directory and place the JDK extract file
There are two ways to install JDK in a Linux environment, one for RPM installation and the other for source code (compiled)
As a result, two installation files are available on the Oracle website, one in RPM format and the other in GZ format, both of which are similar in both ways.
[[email protected] ~]# mkdir/usr/jdk[[email protected] ~]# tar XF jdk-8u25-linux-x64.gz-c/usr/jdk
3, for the above two methods installed JDK will also need to configure the Java environment variables. Here I configure to the end of the /etc/profile file, add the following code
Export Java_home=/usr/jdk/jdk1.8.0_25export android_java_home= $JAVA _homeexport jre_home=/usr/jdk/jdk1.8.0_25/ Jreexport classpath=/usr/jdk/jdk1.8.0_25/libexport path= $JAVA _home/bin: $PATH
4. Finally
Source/etc/profile
5. See if the Java environment is installed
650) this.width=650; "src=" http://www.ahlinux.com/uploadfile/2014/1222/20141222064002973.png "alt=" \ "/>
This article is from the "clear" blog, make sure to keep this source http://duanyexuanmu.blog.51cto.com/1010786/1751156
Tar.gz Package Install Jdk-8u25 method and note place (download historical version of JDK method)