snpeff install error
0
0
Entering edit mode
13 months ago
bestone ▴ 30

Hello guys, I installed snpeff tools to my mac but even I update the java. It still giving the error like this:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/snpeff/SnpEff has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:757)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)

Could you pls help me with this issue?

snpeff • 2.0k views
ADD COMMENT
2
Entering edit mode

your version of java is just too old. java 11 is required for "class file version 55.0" ( https://stackoverflow.com/questions/9170832 )

ADD REPLY
0
Entering edit mode

I downloaded the last version it but it didn't work

ADD REPLY
1
Entering edit mode

output of

echo "${JAVA_HOME}"

and

which java

and

java -version

?

ADD REPLY
0
Entering edit mode
ADD REPLY
1
Entering edit mode

answer my question please.

ADD REPLY
0
Entering edit mode

when I write to terminal

openjdk version "1.8.0_332" OpenJDK Runtime Environment (Zulu 8.62.0.19-CA-macosx) (build 1.8.0_332-b09) OpenJDK 64-Bit Server VM (Zulu 8.62.0.19-CA-macosx) (build 25.332-b09, mixed mode) But if I write: java --version It says Unrecognized option: --version Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

ADD REPLY
1
Entering edit mode

But if I write: java --version

I asked java -version

ADD REPLY
0
Entering edit mode

Thank you guys I figure it out. I will share the link if you need how to fix it. check it

ADD REPLY

Login before adding your answer.

Traffic: 1303 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6