Entering edit mode
10.5 years ago
Parimala Devi
▴
100
I am using snpEFF for SNP annotation. I am building my own database. I added genome entry to snpEff's configuration. I'm building the database from a GFF file.
When I wrote out this command :
java -jar snpEff.jar build -gff -v Y55
I got this error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: ca/mcgill/mcb/pcingola/snpEffect/commandLine/SnpEff : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: ca.mcgill.mcb.pcingola.snpEffect.commandLine.SnpEff. Program will exit.
How do I fix this?
Thanks in advance! :)
Thank you! I upgraded to a newer version of Java.
Now, I'm facing the following error.
Command:
You forgot the
-jar
option:My bad!
Thank you!!
I can't believe I overlooked that in my earlier comment!
It would seem that you need to set the class path.
I am also trying to build my database as the version I need is unavailable in snpEff.
edited
snpEff.config
:build database
I know there is no file called gene.gtf under
~/data/org.7/
but its~/data/org.7/species.org.7.gtf/species.org.7.gtf
. I have no idea why its pointing there and not on the real one.Please guide. Thanks.
As mentioned here Building Snpeff Database, I even renamed my file to genes.gtf, but still same error.
I think its because I am using cygwin.