gpt4 book ai didi

java - 带有 `--multi-release` 选项的 jdeps 命令使用失败

转载 作者:搜寻专家 更新时间:2023-11-01 02:19:18 24 4
gpt4 key购买 nike

我运行了以下命令,但出现了同样的错误:

$ jdeps --generate-module-info . --multi-release 9 libs/log4j-core-2.11.1.jar
Error: log4j-core-2.11.1.jar is a multi-release jar file but --multi-release option is not set

$ jdeps --generate-module-info . --multi-release 10 libs/log4j-core-2.11.1.jar
Error: log4j-core-2.11.1.jar is a multi-release jar file but --multi-release option is not set

$ jdeps --generate-module-info . --multi-release 11 libs/log4j-core-2.11.1.jar
Error: log4j-core-2.11.1.jar is a multi-release jar file but --multi-release option is not set

$ jdeps --generate-module-info . libs/log4j-core-2.11.1.jar
Error: log4j-core-2.11.1.jar is a multi-release jar file but --multi-release option is not set

上面的命令有什么问题?

遵循关于我的环境的其他命令:

$ java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

$ javac --version
javac 10.0.2

$ jdeps --version
10.0.2

java-11-oracle 出现同样的错误。

最佳答案

有一个 bug使用 --multi-release 选项来处理模块

jdeps fails when executing on a non multi release jar and the --class-path contains multi release jars. The opposite is also true. jdeps fails when executing on a multi release jar with the appropriate --multi-release flag is set and the --class-path contains non multi release jars.

问题总结:

This basically makes multi-release jars unusable with modules.

关于java - 带有 `--multi-release` 选项的 jdeps 命令使用失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53581799/

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