Nashorn and Scripting
Josh Juneau · Apress eBooks · 2017
In Java 6, the javax.script package was included for incorporating scripting languages with Java. It enabled developers to embed code written in scripting languages directly into Java applications. This began a new generation of polyglot applications, as developers were able to construct Java solutions containing scripts written in languages such as JavaScript and Python. The JavaScript engine that was used in Java 6 was called Rhino. It is an implementation of the JavaScript engine, developed entirely in Java. While it contains a full JavaScript implementation, it is an older engine and is no longer compliant with current JavaScript Standards. These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.