10 Script Commands

You use JDK commands to run scripts that interact with the Java platform.

The following sections describe the commands used to run scripts:

Note:

The Nashorn JavaScript script engine, APIs, and the jjs tool have been deprecated and might be removed in a future JDK release.

  • jjs: You use the jjs command-line tool to invoke the Nashorn engine.

Note:

Commands identified as Experimental are unsupported and might not be available in future JDK releases.

  • jrunscript: Experimental You use the jrunscript command to run a command-line script shell that supports interactive and batch modes.