Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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) #4

Open
GiantSpaceRobot opened this issue Jul 7, 2021 · 1 comment

Comments

@GiantSpaceRobot
Copy link
Owner

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

@vicho33
Copy link

vicho33 commented Nov 22, 2022

HI!

I did and give this error:

CAPSULE EXCEPTION: Could not parse version: 18.0.1.1 while processing attribute Min-Java-Version: 1.8.0 (for stack trace, run with -Dcapsule.log=verbose)
USAGE: java -jar .nextflow/framework/22.10.3/nextflow-22.10.3-one.jar

Actions:
capsule.version - Prints the capsule and application versions.
capsule.modes - Prints all available capsule modes.
capsule.jvms - Prints a list of all JVM installations found.
capsule.help - Prints this help message.
capsule.tree - Prints the capsule's dependency tree.
capsule.resolve - Downloads all un-cached dependencies.

Options:
capsule.mode= - Picks the capsule mode to run.
capsule.reset - Resets the capsule cache before launching. The capsule to be re-extracted (if applicable), and other possibly cached files will be recreated.
capsule.log= (default: quiet) - Picks a log level. Must be one of none, quiet, verbose, or debug.
capsule.java.home= - Sets the location of the Java home (JVM installation directory) to use; If 'current' forces the use of the JVM that launched the capsule.
capsule.java.cmd= - Sets the path to the Java executable to use.
capsule.jvm.args= - Sets additional JVM arguments to use when running the application.
capsule.local= - Sets the path of the local Maven repository to use.

Do you have any recommendations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants