Nashorn JavaScript engine

suggest change

Versions

Java SE 8.

Introduction

Nashorn is a JavaScript engine developed in Java by Oracle and released with Java 8. It was removed in Java 15. Nashorn allows embedding JavaScript in Java applications via JSR-223 and allows you to develop standalone JavaScript applications. It provides better runtime performance and better compliance with the ECMAScript specification than the engine it replaced.

Syntax

Remarks

Nashorn is a JavaScript engine written in Java and included in Java 8. You use it through the javax.script package.

Note that the ScriptEngineManager provides a generic API allowing you to obtain script engines for various scripting languages (i.e. not only Nashorn, not only JavaScript).

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents