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

installing picard error

tstrobaughtstrobaugh PennsylvaniaMember

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


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(
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at sun.launcher.LauncherHelper.checkAndLoadMain(

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.


Best Answer


  • 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.