Skip to main content

Nashorn and Scripting

  • Chapter
  • First Online:
Book cover Java 9 Recipes
  • 2397 Accesses

Abstract

In Java 6, the javax.script package was included for incorporating scripting languages with Java. It enabled developers to embed code written in scripting languages directly into Java applications. This began a new generation of polyglot applications, as developers were able to construct Java solutions containing scripts written in languages such as JavaScript and Python. The JavaScript engine that was used in Java 6 was called Rhino. It is an implementation of the JavaScript engine, developed entirely in Java. While it contains a full JavaScript implementation, it is an older engine and is no longer compliant with current JavaScript Standards.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Josh Juneau

About this chapter

Cite this chapter

Juneau, J. (2017). Nashorn and Scripting. In: Java 9 Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1976-8_18

Download citation

Publish with us

Policies and ethics