系统相关
首页 > 系统相关> > linux-mint – 如何在Linux Mint 13上完全删除Java 6并安装Java / JDK 7

linux-mint – 如何在Linux Mint 13上完全删除Java 6并安装Java / JDK 7

作者:互联网

如何在Linux Mint 13上完全删除Java 6并安装Java / JDK 7?

解决方法:

以下是它的完成方式:

# Must install 7 first or else when uninstalling six, it will try to install a bunch of replacement gcj stuff.
sudo apt-get install openjdk-7-jdk
sudo apt-get remove openjdk-6-jre
sudo apt-get remove openjdk-6-jre-lib

然后:

> java -version
java version "1.7.0_03"
OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu3)
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)

标签:java,linux-mint
来源: https://codeday.me/bug/20190810/1636524.html