Error: A JNI error has occurred, please check your installation and try again

Posted jomini

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error: A JNI error has occurred, please check your installation and try again相关的知识,希望对你有一定的参考价值。

ss  

java.lang.NoClassDefFoundError: org/apache/spark/api/java/function/Function2
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
    at java.lang.Class.getMethod0(Class.java:3018)
    at java.lang.Class.getMethod(Class.java:1784)
    at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.apache.spark.api.java.function.Function2
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 7 more
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" 
Process finished with exit code 1

 

  

以上是关于Error: A JNI error has occurred, please check your installation and try again的主要内容,如果未能解决你的问题,请参考以下文章

Error: A JNI error has occurred, please check your installation and try again

Error: A JNI error has occurred, please check your installation and try again

Error: A JNI error has occurred, please check your installation and try again

Error: A JNI error has occurred, please check your installation and try again

使用java命令出现Error: A JNI error has occurred, please check your installation and try again的错误

Error: A JNI error has occurred, please check your installation and try again的全面解决方法