This document describes the use of the Nashorn engine for Java application development with scripting features provided by the Java Platform, Standard Edition (Java SE).
This document is intended for Java programmers who want to use the Nashorn engine for scripting features provided by Java SE. It is assumed that you are familiar with Java and a version of the ECMAScript language standard (JavaScript).
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc
.
Access to Oracle Support
Oracle customers that have purchased support have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info
or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs
if you are hearing impaired.
For more information about scripting features provided by Java SE, see the following documents:
Java Scripting Programmer's Guide at http://docs.oracle.com/javase/8/docs/technotes/guides/scripting/prog_guide/index.html
The Java Scripting API (the javax.script
package) specification at http://docs.oracle.com/javase/8/docs/api/javax/script/package-summary.html
For information about invoking the Nashorn engine from the command line, see the reference pages for the jjs
and jrunscript
tools at http://docs.oracle.com/javase/8/docs/technotes/tools/
The following text conventions are used in this document:
Convention | Meaning |
---|---|
boldface | Boldface type indicates graphical user interface elements associated with an action, or terms defined in text or the glossary. |
italic | Italic type indicates book titles, emphasis, or placeholder variables for which you supply particular values. |
monospace |
Monospace type indicates commands within a paragraph, URLs, code in examples, text that appears on the screen, or text that you enter. |