12、Linux的jdk环境配置

vi /etc/profile

export JAVA_HOME=/root/app/jdk
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

 

source /etc/profile

 

posted @ 2020-08-05 22:34  WH·xiao  阅读(107)  评论(0编辑  收藏  举报