OS Manuals

/usr/lib/jvm/java-21-openjdk-openj9/bin/jrunscript

Java Runtime Environment for OpenJDK 21 with OpenJ9

From openjdk-21-openj9-jre 0.63.0-r0 (enterprise-packages), captured 2026-11-08 by running jrunscript --help (exit 0). permalink

Usage: jrunscript [options] [arguments...]

where [options] include:
  -classpath <path>    Specify where to find user class files
  -cp <path>           Specify where to find user class files
  -D<name>=<value>     Set a system property
  -J<flag>             Pass <flag> directly to the runtime system
  -l <language>        Use specified scripting language
  -e <script>          Evaluate given script
  -encoding <encoding> Specify character encoding used by script files
  -f <script file>     Evaluate given script file
  -f -                 Interactive mode, read script from standard input
                       If this is used, this should be the last -f option
  -? -h --help -help   Print this help message and exit
  -q                   List all scripting engines available and exit

If [arguments..] are present and if no -e or -f option is used, then first
argument is script file and the rest of the arguments, if any, are passed
as script arguments. If [arguments..] and -e or -f option is used, then all
[arguments..] are passed as script arguments. If [arguments..], -e, -f are
missing, then interactive mode is used.
Options (12)
OptionDescriptionSource
-classpath pathSpecify where to find user class fileshelp
-cp pathIndicates where any class files are that the script needs to access.help + man
-D name>=<valueSet a system propertyhelp
-J flagPass <flag> directly to the runtime systemhelp
-l languageUses the specified scripting language.help + man
-e scriptEvaluates the specified script.help + man
-f scriptEvaluates the specified script file (batch mode).help + man
-?, -help -hDisplays a help message and exits.help + man
-qList all scripting engines available and exithelp + man
-Dname valueSets a Java system property. (in the manual page but not in --help)man
-JflagPasses flag directly to the Java Virtual Machine where the jrunscript command is running. (in the manual page but not in --help)man
-encoding encodingSpecifies the character encoding used to read script files. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.