O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the jjs command-line tool

The jjs command-line tool supports the execution of JavaScript code files as well as an interactive execution of JavaScript code snippets, as supported by other JavaScript shells, such as node.js. It uses Oracle Nashorn, a next generation JavaScript engine for JVM to provide this support. In addition to the JavaScript code, jjs supports the execution of shell commands, thereby allowing us to create shell script utilities in JavaScript.

In this recipe, we will look at executing JavaScript code files via jjs, as well as the interactive execution of code snippets. 

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required