Linux JDK环境变量配置
作者:互联网
$ sudo vi /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
.....
# java
export JAVA_HOME=/usr/java/jdk1.8.0_311
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
标签:profile,JAVA,JDK,PATH,Bourne,export,Linux,HOME,环境变量 来源: https://www.cnblogs.com/yanzhonghui/p/15601180.html