Error when trying to execute hello-world.nf

training/hello-nextflow -> nextflow run hello-world.nf
ERROR: Cannot find Java or it's a wrong version -- please make sure that Java 8 or later (up to 22) is installed
NOTE: Nextflow is trying to use the Java VM defined by the following environment variables:
 JAVA_CMD: /usr/local/sdkman/candidates/java/current/bin/java
 JAVA_HOME: /usr/local/sdkman/candidates/java/current

I get the following error when I try to run the hello-world.nf program through the training codespace. How do I resolve this issue?

Hi Mufaddal. Which version of the training are you looking at? This error should be resolved in v2.4.1. You can start a codespace using that version here.

1 Like