added the following words at the end of /etc/profile depended on your own system:
export JAVA_HOME=/usr/local/java/jdk1.6.0_31
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
本文详细介绍了如何在Linux系统中通过修改/etc/profile文件来设置JAVA_HOME与PATH环境变量,确保Java应用程序能够正常运行。
added the following words at the end of /etc/profile depended on your own system:
export JAVA_HOME=/usr/local/java/jdk1.6.0_31
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
1872
4739

被折叠的 条评论
为什么被折叠?