CHAPTER 9

image

The jrunscript Command-Line Shell

In this chapter, you will learn:

  • What the jrunscript command-line shell is
  • How to invoke the jrunscript command-line shell
  • The different modes in which the jrunscript command-line shell can be invoked
  • How to list the available script engines with the jrunscript command-line shell
  • How to add a script engine to the jrunscript command-line shell
  • How to pass arguments to the jrunscript command-line shell
  • The global functions made available by the jrunscript command-line shell

The JDK includes a command-line script shell called jrunscript. It is script-engine-independent and it can be used to evaluate any ...

Get Scripting in Java: Integrating with Groovy and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.