gpt4 book ai didi

java - 在哪里放置在 ext 中添加的自定义 jar 以及 jdk 10 的认可文件夹

转载 作者:行者123 更新时间:2023-11-30 02:04:36 25 4
gpt4 key购买 nike

在我们的应用程序中,我们在 ext 和认可文件夹中放置了一些自定义 jar。从 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. The mechanisms were removed in JDK 9 as you have found. The replacement for the extension mechanism is to deploy the JAR file on the class path. The replacement for the endorsed standard override mechanism is the upgrade module path.

我想补充一点--patch-module也可能有帮助。

关于java - 在哪里放置在 ext 中添加的自定义 jar 以及 jdk 10 的认可文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51719728/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com