Linux 配置JAVA_HOME

    vi /etc/profile

 

    export JAVA_HOME = /home/myuser/jdk1.7.0_03
    export PATH = $JAVA_HOME/bin:$PATH

    export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

 source /etc/profile

 

其中JAVA_HOME是上一篇博客中有介绍。

 

 

转载自:https://www.cnblogs.com/cnmenglang/p/6270375.html

posted @ 2018-09-15 01:31  砂糖橘子君  阅读(7928)  评论(0编辑  收藏  举报