简体   繁体   English

jdk 10的ext和认可文件夹中添加的自定义jar的放置位置

[英]Where to place the custom jar added in ext and endorsed folder for jdk 10

In our application we have placed few custom jars in ext and endorsed folder. 在我们的应用程序中,我们在ext和背书文件夹中放置了一些自定义jar。 As jdk 9 onwards these folder are removed, during migration of our application to jdk 10 where to place these jar and how to handle this situation ? 随着jdk 9以后这些文件夹的删除,在将应用程序迁移到jdk 10的过程中,将这些jar放置在何处以及如何处理这种情况?

Alan's comment : 艾伦的评论

The -XX:+CheckEndorsedAndExtDirs options in JDK 8 is useful to detect usages of these mechanisms in preparation for migrating to JDK 9 or newer. JDK 8中的-XX:+CheckEndorsedAndExtDirs选项可用于检测这些机制的使用情况,为迁移到JDK 9或更高版本做准备。 The mechanisms were removed in JDK 9 as you have found. 您已经在JDK 9中删除了这些机制。 The replacement for the extension mechanism is to deploy the JAR file on the class path. 扩展机制的替代方法是在类路径中部署JAR文件。 The replacement for the endorsed standard override mechanism is the upgrade module path. 认可的标准替代机制的替代品是升级模块路径。

I want to add that --patch-module may also be helpful. 我想补充一点--patch-module可能也有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM