jjs(1)
NAME π¦
jjs β invokes the Nashorn engine. That's the whole vibe. Bestie, if you need Nashorn, this is your girl. This page comes from the Basic Tools manual, and yes, it's jjs(1).
SYNOPSIS β¨
jjs [options] [script-files] [-- arguments]
- options β one or more options of the
jjscommand, separated by spaces. For more info, peek at Options. - script-files β one or more script files you wanna interpret with Nashorn, separated by spaces. If you don't specify any files, an interactive shell starts. It's giving REPL energy.
- arguments β all values after the double hyphen marker (
--) get passed through to the script or the interactive shell as arguments. You can access these values using theargumentsproperty (see Example 3).
DESCRIPTION π
The jjs command-line tool is used to invoke the Nashorn engine. You can use it to interpret one or several script files, or to run an interactive shell. main character tool fr fr
OPTIONS π
The options of the jjs command control the conditions under which scripts are interpreted by Nashorn.
-cp path,-classpath pathβ specifies the path to the supporting class files. To set multiple paths, the option can be repeated, or you can separate each path with a colon (:).-Dname=valueβ sets a system property to be passed to the script by assigning a value to a property name. Here's how to invoke Nashorn in interactive mode and assignmyValueto the property namedmyKey:
>> jjs -DmyKey=myValue
jjs> java.lang.System.getProperty("myKey")
myValue
jjs>
This option can be repeated to set multiple properties.
-doe,--dump-on-errorβ provides a full stack trace when an error occurs. By default, only a brief error message is printed.-fv,--fullversionβ prints the full Nashorn version string.-fxβ launches the script as a JavaFX application.-h,-helpβ prints the list of options and their descriptions.--language=[es5]β specifies the ECMAScript language version. The default version is ES5.-ot,--optimistic-types=[true|false]β enables or disables optimistic type assumptions with deoptimizing recompilation. Running with optimistic types will yield higher final speed, but may increase warmup time.-scriptingβ enables shell scripting features.-strictβ enables strict mode, which enforces stronger adherence to the standard (ECMAScript Edition 5.1), making it easier to detect common coding errors.-t=zone,-timezone=zoneβ sets the specified time zone for script execution. It overrides the time zone set in the OS and used by theDateobject.-v,-versionβ prints the Nashorn version string.
EXAMPLES π
Example 1 Running a Script with Nashorn
jjs script.js
Example 2 Running Nashorn in Interactive Mode
>> jjs
jjs> println("Hello, World!")
Hello, World!
jjs> quit()
>>
Example 3 Passing Arguments to Nashorn
>> jjs -- a b c
jjs> arguments.join(", ")
a, b, c
jjs>
SEE ALSO π
jrunscript
okay so that's the whole page. This absolute icon lives in JDK 8, dated 03 March 2015, and it's jjs(1) β no cap, go run your scripts bestie πβ¨
π¦ where this page comes from
- alpine 3.24: openjdk11-doc 11.0.32_p9-r0 Β· GPL-2.0-with-classpath-exception
- alpine 3.24: openjdk8-doc 8.492.09-r0 Β· custom
- debian bookworm: nvidia-openjdk-8-jre 9.+8u372-ga-1~11.8.0-5~deb12u1
- debian trixie: nvidia-openjdk-8-jre 9.+8u452-ga-1~12.4.1-2
- nixos 26.05: corretto11 11.0.30.7.1
- nixos 26.05: scilab-bin 6.1.1
- nixos 26.05: semeru-jre-bin 11.0.23
- nixos 26.05: temurin-jre-bin 11.0.31
- nixpkgs unstable: corretto11 11.0.30.7.1
- nixpkgs unstable: semeru-jre-bin 11.0.23
- nixpkgs unstable: temurin-jre-bin 11.0.32
- ubuntu jammy: openjdk-11-jre-headless 11.0.14.1+1-0ubuntu1
- ubuntu jammy: openjdk-11-jre-headless 11.0.32.1+1-1ubuntu1~22.04 Β· GPL2 WITH Classpath exception
- ubuntu jammy: openjdk-8-jre-headless 8u312-b07-0ubuntu1
- ubuntu jammy: openjdk-8-jre-headless 8u504-ga-1ubuntu1~22.04.3
- ubuntu noble: openjdk-11-jre-headless 11.0.23+9-1ubuntu1 Β· GPL WITH Classpath exception
- ubuntu noble: openjdk-11-jre-headless 11.0.32.1+1-1ubuntu1~24.04 Β· GPL2 WITH Classpath exception
- ubuntu noble: openjdk-8-jre-headless 8u402-ga-8build1
- ubuntu noble: openjdk-8-jre-headless 8u504-ga-1ubuntu1~24.04.3
- ubuntu questing: openjdk-11-jre-headless 11.0.28+6-1ubuntu1
- ubuntu questing: openjdk-11-jre-headless 11.0.31+11-1ubuntu1~25.10.2
- ubuntu questing: openjdk-8-jre-headless 8u462-ga-1
- ubuntu questing: openjdk-8-jre-headless 8u492-ga~us2-0ubuntu1~25.10.1
- ubuntu resolute: openjdk-11-jre-headless 11.0.30+7-1ubuntu1 Β· GPL WITH Classpath exception
- ubuntu resolute: openjdk-11-jre-headless 11.0.32.1+1-1ubuntu1~26.04 Β· GPL2 WITH Classpath exception
- ubuntu resolute: openjdk-8-jre-headless 8u482-ga~us1-0ubuntu1
- ubuntu resolute: openjdk-8-jre-headless 8u504-ga-1ubuntu1~26.04.3
- ubuntu stonking: openjdk-11-jre-headless 11.0.32.1+1-1ubuntu2 Β· GPL2 WITH Classpath exception
- ubuntu stonking: openjdk-8-jre-headless 8u504-ga-1ubuntu1
- Copyright (c) 1994, 2015, Oracle and/or its affiliates. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms