Nashorn (JavaScript engine)

Developer(s) Oracle Corporation
Development status Active
Written in Java
Operating system Cross-platform
Platform Java Virtual Machine
Type JavaScript engine
License GPL with a linking exception

Nashorn is a JavaScript engine developed in the Java programming language by Oracle. It is based on the Da Vinci Machine (JSR 292) and has been released with Java 8.[1][2][3]

The project was announced first at the JVM language summit in July 2011,[4][5] and then confirmed at JavaOne in October 2011.[6]

On November 21, 2012, Oracle formally announced the open sourcing of the Nashorn source on the OpenJDK repository. The project aim will be to allow embedding JavaScript in Java applications via JSR-223 and to develop standalone JavaScript applications.[7] On December 21, 2012, Oracle announced Nashorn source was publicly released in the OpenJDK repository.[8]


Nashorn [ˈnaːsˌhɔɐ̯n] ("nahss-horn") is the German translation of rhinoceros, a play on words on Rhino, the name of a JavaScript engine implemented in Java and provided by Mozilla Foundation. The latter gets its name from the animal on the cover of the JavaScript book from O'Reilly Media.[9]


According to Oracle benchmarks, Nashorn performance is several orders of magnitude faster than the old Rhino JavaScript engine.[10]


There are no browser APIs[11] such as:

See also


  1. Laskey, James (July 2011). "Adventures in JSR-292 or How To Be A Duck Without Really Trying" (PDF). Oracle Corporation. Retrieved 2011-07-24.
  2. "Proposed new schedule for Java 8". 2013-04-18. Retrieved 2013-04-19.
  3. "JDK 8". OpenJDK. 2013-04-18. Retrieved 2013-04-19.
  4. "JVM Language Summit — Agenda". Oracle Corporation. July 2011. Retrieved 2011-07-24.
  5. Saab, Georges (2011-07-19). "JVM Language Summit: Moving Java Forward, aka 'Pointy haired manager talk'" (PDF). Oracle Corporation. Retrieved 2011-07-24.
  6. Krill, Paul (2011-10-05). "Oracle prepping its Nashorn JavaScript engine". InfoWorld. Retrieved 2011-10-08.
  7. Coomes, John (2012-11-21). "CFV: New Project: Nashorn". Oracle Corporation. Retrieved 2012-11-24. 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
  8. Laskey, J (2012-12-21). "Open for business". Oracle Corporation. Retrieved 2012-12-21.
  9. "JavaScript: The Definitive Guide, 5th Edition". O'Reilly Media, Inc. Retrieved 2012-01-31.
  10. "Nashorn Architecture and Performance Improvements in the Upcoming JDK 8u40 Release". Oracle Corporation. 2014-12-12. Retrieved 2015-09-06.
  11. "Oracle Nashorn: A Next-Generation JavaScript Engine for the JVM". Retrieved 2016-06-20.

External links

This article is issued from Wikipedia - version of the 9/29/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.