[英]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.