Nextflow does not work with the latest version of Java (22):
ERROR: Cannot find Java or it's a wrong version -- please make sure that Java 8 or later (up to 21) is installed
NOTE: Nextflow is trying to use the Java VM defined by the following environment variables:
JAVA_CMD: /opt/anaconda3/envs/samtools/bin/java
JAVA_HOME:
Nextflow does not work with the latest version of Java (22):
Please fix it.