降级到 Java 6

Downgrade to Java 6

我的计算机上安装了 Java 8,之前是 Java 7。但是我需要使用版本 6。

如何安装 Java 6? Oracle 网站上,旧版本已无法下载。

如果之前没有安装过Java,如何降级?

请注意Java 6 is no longer receiving public updates. You always should use the most updated Java version

但您可以在 Oracle Java Archive 上找到一些历史 Java 版本。页面警告:

WARNING: These older versions of the JRE and JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production.

这些是下载旧版本 Java SE 的链接:

有可能。许多著名的软件都可以追溯到第一个版本(用于测试或其他目的)。您实际上可以找到并下载第一个版本的 Firefox、Chrome、Netbeans、WordPress 等。与 Java 相同。他们只是让挖掘 old versions 变得有点困难,而且他们出于充分的理由故意隐藏它。

These older versions of the JRE and JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production.

Keeping old and unsupported versions of Java on your system presents a serious security risk.

(而Java已经不是什么名气了,security-wise)

您不能 "downgrade" 某个版本的 Java。您安装所需的 Java 不同版本,并将您的项目设置为使用该特定版本构建。在一个系统上,可以同时安装多个 Java 个版本。