我运行 flink 示例项目(Frauddetection)有什么问题?
What's wrong with me to run the flink sample project(Frauddetection)?
我在学习apache-flink的教程,我运行在我的IDEA里面,然后就出现了这样的错误:
enter code here
错误:发生JNI错误,请检查您的安装并重试
enter code here
线程“主”中的异常java.lang.NoClassDefFoundError:enter code here
org/apache/flink/streaming/api/functions/source/SourceFunction
enter code here
在 java.lang.Class.getDeclaredMethods0(本机方法)
enter code here
在 java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
enter code here
在 java.lang.Class.privateGetMethodRecursive(Class.java:3048)e
我的jdk版本是jdk1.8.0_291,jre版本是jre1.8.0_331
跟这个有关系吗?
如果您想在 IntelliJ 中 运行 一个像这样的项目,您将需要编辑 运行 配置以包含此选项:
Add dependencies with "provided" scope to classpath
我在学习apache-flink的教程,我运行在我的IDEA里面,然后就出现了这样的错误:
enter code here
错误:发生JNI错误,请检查您的安装并重试
enter code here
线程“主”中的异常java.lang.NoClassDefFoundError:enter code here
org/apache/flink/streaming/api/functions/source/SourceFunction
enter code here
在 java.lang.Class.getDeclaredMethods0(本机方法)
enter code here
在 java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
enter code here
在 java.lang.Class.privateGetMethodRecursive(Class.java:3048)e
我的jdk版本是jdk1.8.0_291,jre版本是jre1.8.0_331
跟这个有关系吗?
如果您想在 IntelliJ 中 运行 一个像这样的项目,您将需要编辑 运行 配置以包含此选项:
Add dependencies with "provided" scope to classpath