How to install and config jdk10 on Ubuntu/Linux

版权声明: https://blog.csdn.net/u011263794/article/details/80934083

1) Download jdk-10.0.1_linux-x64_bin.tar.gz

2) Unzip jdk-10.0.1_linux-x64_bin.tar.gz

3) Set the JAVA_HOME, CLASSPATH and PATH
sudo gedit /etc/profile
export JAVA_HOME=/usr/lib/Java/jdk-10.0.1
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JRE_HOME/lib

export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin

4) Enable our sets
source /etc/profile

猜你喜欢

转载自blog.csdn.net/u011263794/article/details/80934083