-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception in thread "main" java.lang.UnsupportedClassVersionError #501
Comments
Hi. Just to say that I've also received this error today. I know it used to work fine with snippy 4.6.0 using java 1.8.0_231, but not sure how to resolve it I'm afraid. |
I suspect that there is a problem with snpEff, so I found on the snpEff homepage that it requires a version of Java 12, I installed Java 12 and changed the environment variable to Java 12, but the problem still exists. |
snpEff=5 indeed requires Java 12 but does not seem to communicate this to conda. Pinning snpEff to the minimal required version for snippy does the trick for me: |
Thank you very much for your help, I solved this problem |
Hi, mamba create -n snippy snippy=4.6 snpeff=4.3 |
Try version
For using the latest version of snpEff it looks like Java 12 is not available in conda yet (the |
Thank you for the suggestion. After installing snippy using mamba it shows "bcftools not installed", but bcftools v1.15 is installed automatically by snippy. So, I did remove bcftools from the current conda environment. Then, reinstall snippy v4.6.0 with bcftools v1.10 in the current conda env. Thanks again! |
Hello, I would like to ask why the error is still displayed after I put snpeff=5.0 snpEff build -c reference/snpeff.config -dataDir . -gff3 ref bwa mem -Y -M -R '@rg\tID:mut1\tSM:mut1' -t 8 reference/ref.fa fake_reads.fq | samclip --max 10 --ref reference/ref.fa.fai | samtools sort -n -l 0 -T /tmp --threads 3 -m 2000M | samtools fixmate -m --threads 3 - - | samtools sort -l 0 -T /tmp --threads 3 -m 2000M | samtools markdup -T /tmp --threads 3 -r -s - - > snps.bam[markdup] error reading header Thank you very much for your help |
Hi, Did you figure out the issue? |
I found that the default memory for the program to run is too large, and my virtual machine memory is not enough. The running code can be changed to this |
when i train snippy using the data offered by author,
snippy --outdir mut1 --ref example.gbk --ctgs example.fna
I have the following problem:
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)
I check my snippy version:snippy 4.6.0
java version:
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
I'm new to the command line, has anyone else had a similar problem, please help me
The text was updated successfully, but these errors were encountered: