Download a good jdk rpm file: jdk-8u45-linux-x64.rpm this version
RPM-IVH jdk-8u45-linux-x64.rpm
The path after installation is/usr/java
Configuring Environment variables
vim/etc/profile.d/java.sh
Export JAVA_HOME=/USR/JAVA/JDK
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export path= $JAVA _home/bin: $PATH
Declaring environment variables
Source/etc/profile
See if Java is set up successfully
Java-version
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7F/2A/wKioL1cVySrhTa-uAAAYVUsQ_I4681.png "title=" d4cx$] Q5y8to2w[_9{4di$c.png "alt=" Wkiol1cvysrhta-uaaayvusq_i4681.png "/>
When such a typeface appears, the installation succeeds
This article is from the "burning Years of Passion" blog, please be sure to keep this source http://liuzhengwei521.blog.51cto.com/4855442/1765350
jdk--the JDK when configuring Tomcat