How to install oracle JDK under ubuntu
This article mainly introduces "how to install oracle JDK under ubuntu". In daily operation, I believe many people have doubts about how to install oracle JDK under ubuntu. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to install oracle JDK under ubuntu". Next, please follow the editor to study!
1. Download the jdk package
Jdk-7u80-linux-x64.tar.gz
two。 Extract to / app/jdk
3. Set environment variabl
Tian@tian-lenovo:/etc$ sudo vi profile
Add the following parameters
JAVA_HOME=/app/jdk7
JRE_HOME=$JAVA_HOME/jre
JAVA_BIN=$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
Export JAVA_HOME JRE_HOME PATH CLASSPATH
Save exit
Tian@tian-lenovo:/etc$ source profile
4. Verification
Tian@tian-lenovo:/etc$ java-version
Java version "1.7.080"
Java (TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot (TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
At this point, the study on "how to install oracle JDK under ubuntu" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!