Reference articles on history, science, culture and more
Encyclopedia

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 JavaScript engine by default, but the Oracle JVM (Java 6 and later) included a JavaScript engine, based on Rhino version 1.6R2 before Java 8, and Nashorn since Java 8.

Nashorn was deprecated in Java 11 and was officially removed from the JDK in Java 15.

Scripting for the Java Platform was developed under the Java Community Process as JSR 223. The final release of JSR 223 happened on December 11, 2006. The specification, however, was withdrawn later on December 13, 2016 after a Maintenance Review Ballot, where it was decided that the javax.script API would be included as an integral part of Java 9 and onward.

Watch videos about Scripting for the Java PlatformExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Scripting for the Java Platform, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.