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

Getting ready

First, verify whether the jjs tool is available by issuing the command, jjs -version. This will print the version as nashorn 9-ea and enter it into the shell, as shown in the following image:

We can even get more specific version information using jjs -fv, which prints the version as nashorn full version 9-ea+169.

The JavaScript code files used in this recipe are available at the location, chp14/1_jjs_demo.

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