系统相关
首页 > 系统相关> > 如何在ubuntu 16.04中安装java 8?

如何在ubuntu 16.04中安装java 8?

作者:互联网

参见英文答案 > How can I install OpenJDK on Ubuntu 16.04?                                     3个
如何安装java-JDK 8&在Ubuntu 16.04中没有添加任何PPA的maven?

解决方法:

打开终端(ctrl alt t):

sudo apt-get install openjdk-8*

这将安装以下包:

openjdk-8-jre-dcevm - Alternative VM for OpenJDK 8 with enhanced class redefinition
openjdk-8-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark
openjdk-8-dbg - Java runtime based on OpenJDK (debugging symbols)
openjdk-8-demo - Java runtime based on OpenJDK (demos and examples)
openjdk-8-doc - OpenJDK Development Kit (JDK) documentation
openjdk-8-jdk - OpenJDK Development Kit (JDK)
openjdk-8-jdk-headless - OpenJDK Development Kit (JDK) (headless)
openjdk-8-jre - OpenJDK Java runtime, using Hotspot JIT
openjdk-8-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
openjdk-8-jre-jamvm - Alternative JVM for OpenJDK, using JamVM
openjdk-8-source - OpenJDK Development Kit (JDK) source files

现在到了maven:

sudo apt-get install maven maven*

这将安装以下包:

maven - Java software project management and comprehension tool
maven-ant-helper - helper scripts for building Maven components with ant
maven-debian-helper - Helper tools for building Debian packages with Maven
maven-repo-helper - Helper tools for including Maven metadata in Debian packages

标签:java,jdk,16-04
来源: https://codeday.me/bug/20190807/1614475.html