简体   繁体   English

在Intellij IDE中的命令行中运行可执行jar时出错

[英]Error when running executable jar in command line in Intellij IDE

Everything works fine when running via Intellij IDE in Run mode and Debug mode . 通过Intellij IDE运行模式和调试模式下运行时,一切正常。 However, when run from command line the executable jar, I get the following: 但是,从命令行运行可执行jar时,得到以下信息:
NoSuchMethodError for io.netty.util.internal.PlatformDependent.newAtomicIntegerFieldUpdater.
What could cause this and what to do about it? 是什么原因导致的?如何处理? Thank you in advance! 先感谢您!

Most likely it is caused by incorrect version of netty being packed or available at runtime. 这很可能是由于打包或在运行时可用的Netty版本不正确引起的。 If the version is different from what is used when you run it in your IDE it may result in this error or may work incorrectly. 如果版本与在IDE中运行时使用的版本不同,则可能导致此错误或无法正常工作。
Make sure that you are packaging all required libraries and correct versions of them too. 确保打包了所有必需的库,并且也包装了它们的正确版本。
PS Your system JRE is not necessarily the same as your IDE's JRE PS您的系统JRE不一定与IDE的JRE相同

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

相关问题 测试从intelliJ IDE按预期运行,但从命令行TestNG运行时没有 - Test running as expected from intelliJ IDE but not when running it from the command line TestNG 在IntelliJ中但不在命令行上运行JUnit 5测试时出错 - Error when running JUnit 5 tests in IntelliJ but not on the command line 使用命令行和外部lib在IDE外部运行我的jar时出错 - Error while running my jar outside of the ide using command line and external lib 从命令行而不是从IDE运行JAR时,会导致NullPointerException的原因是什么? - What would cause a NullPointerException when running a JAR from the command line, but not from an IDE? 在命令行上运行.jar时无法访问 - Cannot access when running a .jar on command line 调试JAR intellij或命令行 - Debug JAR intellij or command line 运行可执行jar时ClassNotFoundException - ClassNotFoundException when running executable jar 运行可执行文件jar在java.library.path错误中不会抛出opencv_java310但在IDE中运行正常 - Running Executable Jar throws no opencv_java310 in java.library.path error but runs fine in IDE Optaplanner-运行可执行jar时出错,但从eclipse可以正常工作 - Optaplanner - Error when running executable jar but works fine from eclipse 图标和文本在 IntelliJ IDE 中看起来不错,但在运行 JAR 文件时它们看起来模糊/放大 - Icons and text look OK in IntelliJ IDE, but they look blurry/scaled up when running the JAR file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM