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

Logo

更多推荐