添加.bash_profile文件中的三个环境变量JAVA_HOME、CLASSPATH、PATH

Linux中配置jdk的环境变量

[[email protected] ~]# cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export JAVA_HOME=/home/trs/TRSWCMV7/j2sdk
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH

相关文章:

  • 2021-07-14
  • 2021-06-28
  • 2022-02-12
  • 2022-02-02
  • 2022-02-09
  • 2022-01-14
猜你喜欢
  • 2021-07-02
  • 2022-12-23
  • 2021-06-12
  • 2021-12-15
  • 2022-01-19
相关资源
相似解决方案