Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Centos install JDK

Shulou Source: shulou.com Published: 2022-06-01 06:44:24 10月03日 Update

Ready: JDK (version 1.7, version 1.8 removed the JDBC-ODBC bridge)

Link: http://pan.baidu.com/s/1nvfLM2l password: 3gnb

Extract the JDK file:

Tar-zxvf jdk-7u75-linux-x64.tar.gz mkdir / usr/java mv jdk1.7.0_75/ / usr/java/

3. Configure environment variables

Global profile / etc/profile

Vi / etc/profile export JAVA_HOME=/usr/java/jdk1.7.0_75 export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin source / etc/profile / / make the configuration file effective

4. test

Java-version java version "1.7.0375" Java (TM) SE Runtime Environment (build 1.7.0_75-b13) Java HotSpot (TM) 64-Bit Server VM (build 24.75-b04, mixed mode)

Tags: File configuration version global variable password environment link preparation test Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Huawei Shulou Information vpn NVidia