Java: Extensions Class Loader 从哪里获取 类 来自 Java 13?
Java: Where does the Extensions Class Loader get classes from in Java 13?
我能找到的所有文档都提到了 'jre/lib/ext' 文件夹,但我的 JRE 13 安装中不存在该文件夹。
我想在 Java 8(我可以在 jre/lib/ext 中看到罐子)和 Java 13 之间的某个地方,它们移动了,但我无法确定何时以及如何移动完成了。
有人可以根据扩展 类 当前所在的位置详细说明新 JRE 的进展情况吗?
扩展机制随Java9一起没了,不仅搬了[:-| , 请参阅 Important Changes and Information 以获取 Java 9:
The deprecated Extensions Mechanism has been removed. The runtime will refuse to start if ${java.home}/lib/ext
exists or the system property java.ext.dirs
is specified on the command line.
还有 Changes to the Installed JDK/JRE Image in JDK 9 Migration Guide:
In previous releases, the extension mechanism made it possible for the runtime environment to find and load extension classes without specifically naming them on the class path. In JDK 9, if you need to use the extension classes, ensure that the JAR files are on the class path.
我能找到的所有文档都提到了 'jre/lib/ext' 文件夹,但我的 JRE 13 安装中不存在该文件夹。
我想在 Java 8(我可以在 jre/lib/ext 中看到罐子)和 Java 13 之间的某个地方,它们移动了,但我无法确定何时以及如何移动完成了。
有人可以根据扩展 类 当前所在的位置详细说明新 JRE 的进展情况吗?
扩展机制随Java9一起没了,不仅搬了[:-| , 请参阅 Important Changes and Information 以获取 Java 9:
The deprecated Extensions Mechanism has been removed. The runtime will refuse to start if
${java.home}/lib/ext
exists or the system propertyjava.ext.dirs
is specified on the command line.
还有 Changes to the Installed JDK/JRE Image in JDK 9 Migration Guide:
In previous releases, the extension mechanism made it possible for the runtime environment to find and load extension classes without specifically naming them on the class path. In JDK 9, if you need to use the extension classes, ensure that the JAR files are on the class path.