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.

Java FileNotFoundError while executing gatk4

I have install gatk on ubuntu 16.04 LTS, 64 bit following the steps mentioned at this link and I have checked that the instlallation is good (everything checked till step#4 on the above provided lnk)

Now , when I run gatk --list, I encounter below error message:

(gatk) [email protected]:~/gatk-$ gatk --list
Using GATK jar /home/bioinfo/gatk-
    java -Dsamjdk.use_async_io_read_samtools=false -Dsamjdk.use_async_io_write_samtools=true -Dsamjdk.use_async_io_write_tribble=false -Dsamjdk.compression_level=2 -jar /home/bioinfo/gatk- --help
Traceback (most recent call last):
  File "/home/bioinfo/gatk-", line 477, in <module>
  File "/home/bioinfo/gatk-", line 152, in main
    runGATK(sparkRunner, sparkSubmitCommand, dryRun, gatkArgs, sparkArgs, javaOptions)
  File "/home/bioinfo/gatk-", line 328, in runGATK
    runCommand(cmd, dryrun)
  File "/home/bioinfo/gatk-", line 382, in runCommand
  File "/home/bioinfo/miniconda2/envs/gatk/lib/python3.6/", line 286, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/home/bioinfo/miniconda2/envs/gatk/lib/python3.6/", line 267, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/home/bioinfo/miniconda2/envs/gatk/lib/python3.6/", line 707, in __init__
    restore_signals, start_new_session)
  File "/home/bioinfo/miniconda2/envs/gatk/lib/python3.6/", line 1333, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'java'
(gatk) [email protected]:~/gatk-$ java -version

Best Answers


Sign In or Register to comment.