赞
踩
也可以下rpm包安装, 类似rpm -ivh jdk-8u333-linux-x64.rpm
mkdir software
tar -zxvf jdk-18_linux-x64_bin.tar.gz
mv jdk-18.0.1.1/ jdk18
vi /etc/profile
-
- export JAVA_HOME=/usr/local/software/jdk18
- export JAVA_BIN=/usr/local/software/jdk18
- export PATH=$PATH:$JAVA_HOME/bin
- export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
- export JAVA_HOME JAVA_BIN PATH CLASSPATH
source /etc/profile
改过来了。。。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。