Dear all,
first of all I read the other thread about this in this forum:
here and the recommended links in that thread.
I also found this problem in stackoverflow (here).
Unfortunataly I couldn't solve my problems with the proposals in those threads.
I'm trying to run AddOrReplaceReadGroups, FixMateInformation and MarkDuplicates from picard.jar.
I'm using picard tools v2.10.6 and I have java version "1.8.0_121"
The commands that I'm using are:
java -jar /path/to/picard-tools-2.10.6/picard.jar AddOrReplaceReadGroups I=/folder/file_sorted.bam O=/folder/file_sorted.readgroups.bam RGID=RG_ID RGLB=file_name RGPL=illumina RGPU=CTTGTA RGSM=file_name
Now, the problem is the following: I tested that command line exactly on the shell and it worked fine. I got an output file that is correct. BUT if I submit this command line as a script (I have to run this for several genomes so I would like to submitted to the server as scripts), it gives the following error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: picard/cmdline/PicardCommandLine : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:648)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:272)
at java.net.URLClassLoader.access$000(URLClassLoader.java:68)
at java.net.URLClassLoader$1.run(URLClassLoader.java:207)
at java.net.URLClassLoader$1.run(URLClassLoader.java:201)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:200)
at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:296)
at java.lang.ClassLoader.loadClass(ClassLoader.java:270)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:406)
Any suggestions? I would appreciate any ideas
Sorry if this is repeated, but I couldn't solve the problem with the other threads
Thank you!