java 错误:发生 JNI 错误,请检查您的安装并重试。NoClassDefFound 错误:DRPCExecutionException
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/41674896/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ERROR: A JNI error has occurred, please check your installation and try again.NoClassDefFound error: DRPCExecutionException
提问by Govind Yadav
When I am trying to connect to storm-topology(v1.0.2) throuch DRPC client request I am getting the following error:
当我尝试通过 DRPC 客户端请求连接到 Storm-topology(v1.0.2) 时,出现以下错误:
ERROR: A JNI error has occurred, please check your installation and try again. exception in thread "main" java.lang.NoClassDefFoundError:org/apache/storm/generated/DRPCExecutionException
错误:发生 JNI 错误,请检查您的安装并重试。线程“main”中的异常 java.lang.NoClassDefFoundError:org/apache/storm/generated/DRPCExecutionException
回答by Kristjan Veskim?e
First problem you have is that Apache Storm is missing from classpath. If you are using Maven, hereare example coordinates to put in pom.xml - or alternatively you may need to dowload JAR-files from website and put them inside libraries directory. Then you might start to get more meaningful error message. Maybe you need to define JNDI resource?
您遇到的第一个问题是类路径中缺少 Apache Storm。如果您使用的是 Maven,这里是放置在 pom.xml 中的示例坐标 - 或者您可能需要从网站下载 JAR 文件并将它们放入库目录中。然后您可能会开始收到更有意义的错误消息。也许您需要定义 JNDI 资源?
回答by Ajaykumar Nila
This (JNI error) is very common error, it occurs when you change your jdk version. To solve this error you have to change the compiler setting only. Just right click on project and go to properties then go to java compiler and then select compiler compliance level to your JDK version....that's it, done!
这个(JNI 错误)是很常见的错误,它发生在你改变你的 jdk 版本时。要解决此错误,您只需更改编译器设置。只需右键单击项目并转到属性,然后转到 java 编译器,然后选择编译器符合性级别到您的 JDK 版本......就这样,完成了!