To celebrate the release of GATK 4.0, we are giving away free credits for running the GATK4 Best Practices pipelines in FireCloud, our secure online analysis portal. It’s first come first serve, so sign up now to claim your free credits worth $250. Sponsored by Google Cloud. Learn more at https://software.broadinstitute.org/firecloud/documentation/freecredits

installing picard error

tstrobaughtstrobaugh PennsylvaniaMember

executing the command:
java -jar /usr/local/bin/picard-tools-2.4.1/picard.jar -h

Gives:

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:803)
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)

additional info:

java -version
java version "1.7.0_101"
OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)

What am I doing wrong? Thanks.

Tagged:

Best Answer

Answers

  • tstrobaughtstrobaugh PennsylvaniaMember

    Yes, thanks. I figures that, it's more of a problem that I didn't know how to uninstall all the versions of 7
    install 8 : sudo apt-get install oracle-java8-installer
    remove 7 jre: sudo apt-get autoremove openjdk-7-jre
    view other versions: sudo dpkg --list | grep -i jdk
    remove the one I missed: sudo apt-get autoremove openjdk-7-jre-headless

    It runs now thanks.

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAMember, Administrator, Broadie

    FYI you can have multiple versions of java installed (which can be useful if you're using some tools that require different versions) as long as you set your JAVA_HOME environment variable to the one you want to use by default.

Sign In or Register to comment.