Java Develop Kit need to be find in system.

Edit user home bashrc file /home/username/.bashrc

Append these sentence.

export JAVA_HOME=/home/username/JavaDevEnv/jdk[version]
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

then logout and login or just source .bashrc.

Try some command to see if worked.

>java -version

本文作者zhangzj, 欢迎评论、交流。
转载请务必标注出处: Linux JDK Environment Variables Config


«Previous: None.

»Next:         Java Web 学习路线图