 Scripting for the Java Platform

Scripting for the Java Platform is a framework for embedding scripts into Java source code.There is no requirement for a given Java Virtual Machine (JVM) to include any engines by default, but the Oracle JVM (Java 6 and later) includes a JavaScript engine, based on Rhino version 1.6R2 before Java 8, and Nashorn since Java 8.