ubuntu20–(3)–Windows 10 自带linux子系统-安装jdk1.8

安装jdk1.8

cd /usr/local/bin/

$ sudo add-apt-repository ppa:openjdk-r/ppa
$ sudo apt-get update
$ sudo apt-get install openjdk-8-jdk

备注:
$ sudo apt-get install openjdk-8-jdk
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package openjdk-8-jdk

安装完成后

JAVA_HOME默认路径:
/usr/lib/jvm/java-8-openjdk-amd64

看这里,看这里
文章总目录:博客导航
参考文章:https://blog.csdn.net/u_ascend/article/details/80592389

你可能感兴趣的:(java,linux,ubuntu)