2022-04-02 Picard遇到的java(JDK)问题
1.今天简历基因组索引
picard CreateSequenceDictionary R=LH9.fasta &> picardindex.log &
picard报错:
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:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
网络搜索原因是
picard-2.18.29-0 需要的是java 1.8环境
而系统
java -version
javac -version 均为1.7
2.JDK各个版本发布时间和版本名称表
https://blog.csdn.net/wq6ylg08/article/details/91351603基本锁定错误,JDK(Java)版本过低导致
3. 利用conda单独为picard创建一个java 1.8环境
conda create -n java8 java-jdk=8.0.92
conda activate java8
conda install picard
重新运行认为完美解决。