If you see the error here:
CAPSULE EXCEPTION: java.io.IOException: Cannot run program "/usr/bin/java/bin/java": error=20, Not a directory (for stack trace, run with -Dcapsule.log=verbose)
Unable to initialize nextflow environment
Please unset your JAVA_HOME:
unset JAVA_HOME
If you see the error here:
Please unset your JAVA_HOME:
unset JAVA_HOME