JBANG JDK EXEC

NAME

jbang jdk exec — Executes the given command using the default (or specified) JDK.

SYNOPSIS

jbang jdk exec [OPTIONS] <command>...

Runs a command with a jbang-managed JDK on PATH and JAVA_HOME: the default JDK, or the one given with -j (installed if needed).

Examples:

jbang jdk exec java -version
jbang jdk exec -j 21 mvn package

OPTIONS

--jdk-providers=<jdk-providers>

Use the given providers to manage JDKs

--jdk-distros=<jdk-distros>

Use the given distributions to install new JDKs

-j, --java=<java>

JDK version to use for executing the command.

-h, --help

Display this help and exit

--config=<config>

Path to config file to be used instead of the default

--insecure

Enable insecure trust of all SSL certificates.

--[no-]verbose

jbang will be verbose on what it does.

--[no-]quiet

jbang will be quiet, only print when error occurs.

-o, --[no-]offline

Work offline. Fail-fast if dependencies are missing.

--[no-]fresh

Make sure we use fresh (i.e. non-cached) resources.

-x, --[no-]stacktrace

Print exceptions stacktraces to stderr (even when quiet).

--netrc=<netrc>

Path to a .netrc file for HTTP authentication credentials.

--no-netrc

Disable .netrc authentication lookup.

ARGUMENTS

<command>

Command to execute