Heads up:
We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We encourage our fourm members to be more involved, jump in and help out your fellow researchers with their questions. GATK forum is a community forum and helping each other with using GATK tools and research is the cornerstone of our success as a genomics research community.We appreciate your help!

Test-drive the GATK tools and Best Practices pipelines on Terra

Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.
We will be out of the office for a Broad Institute event from Dec 10th to Dec 11th 2019. We will be back to monitor the GATK forum on Dec 12th 2019. In the meantime we encourage you to help out other community members with their queries.
Thank you for your patience!

How to switch to a different Java version when running GATK?

Dear GATK developers,
My system's default java version is 11.0.1, but I know java 1.8 is recommended running GATK. I also have java 1.8 installed on the system. And GATK is recommended to be executed using command 'gatk' instead of 'java -jar gatk-*.jar'. How can I tell gatk to use a different version of Java? Thank you.

Best Answer


  • bshifawbshifaw Member, Broadie, Moderator admin

    I'll have to double check if parameters exist within the gatk wrapper script to allow you to specify the java version. But if your in a rush you could temporarily change the default java being used on you system as mentioned on this site.

  • bshifawbshifaw Member, Broadie, Moderator admin

    Hi Adam,

    There isn't a quick way to specify the Java version when running GATK with the wrapper script, the java version would have to be temporarily set as the default on your system as mentioned above.

  • adam_diadam_di PKUMember
    Thank you all! It has been solved.
Sign In or Register to comment.