This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages) (Learn how and when to remove this message)
|
| Nashorn | |
|---|---|
| Developers | Oracle Corporation, OpenJDK Community |
| Stable release | 15.7 / August 21, 2025; 5 months ago (2025-08-21) |
| Written in | Java |
| Operating system | Cross-platform |
| Platform | Java Virtual Machine |
| Type | JavaScript engine |
| License | GPL with a linking exception |
| Repository | |
Nashorn is aJavaScript engine developed in theJava programming language originally byOracle and later by the OpenJDK Community. It relies on the support for dynamically typed languages on the Java Platform (JSR 292) (a concept first realized in the experimentalDa Vinci Machine and a standard part of Java 7 and later.) Nashorn was included withJava 8 through JDK 14.[1][2][3]
The project was announced first at the JVM language summit in July 2011,[4][5] and then confirmed atJavaOne in October 2011.[6]
On November 21, 2012, Oracle formally announced theopen sourcing of the Nashorn source on theOpenJDK repository. The project aim will be to allow embedding JavaScript in Java applications viaJSR-223 and to develop standalone JavaScript applications.[7] On December 21, 2012, Oracle announced Nashorn source was publicly released in theOpenJDK repository.[8]
It provides a 100% support ofECMAScript 5.1.[9] It was the first JavaScript implementation to achieve 100% pass rate on the ECMAScript 5.1 test suite.[10]
With the release of Java 11, Nashorn was deprecated citing challenges to maintenance, and has been removed from JDK 15 onwards.[11][12]
Nashorn developmentcontinues on GitHub as a standaloneOpenJDK project and theseparate release can be used in Java projects from Java 11 and up.
Nashorn[ˈnaːsˌhɔɐ̯n] ("nahss-horn") is the German translation ofrhinoceros, a play on words onRhino, the name of a JavaScript engine implemented in Java and provided byMozilla Foundation. The latter gets its name from the animal on the cover of the JavaScript book fromO'Reilly Media.[13]
According toOracle benchmarks, Nashorn performance is several orders of magnitude faster than the alternativeRhino JavaScript engine.[14]
I hereby propose the creation of the Nashorn Project with Jim Laskey as the Lead and HotSpot group as the sponsoring Group. In accordance with the OpenJDK guidelines [1], we would like to start a new project to implement a lightweight high-performance JavaScript runtime in Java with a native JVM