linux安装jdk


wget https://repo.huaweicloud.com/java/jdk/8u201-b09/jdk-8u201-linux-x64.tar.gz
tar -zxvf jdk-8u201-linux-x64.tar.gz

#set java environment
export JAVA_HOME=/usr/local/etc/wyc/software/java/jdk1.8.0_201
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

. /etc/profile

java -version

posted @ 2020-06-17 16:32  孤独的根号er  阅读(116)  评论(0编辑  收藏  举报