Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Scripting in Java : integrating with Groovy and JavaScript
Sharan K., Apress, New York, NY, 2014. 388 pp. Type: Book (978-1-484207-14-7)
Date Reviewed: May 13 2015

Java 6 introduced the Java scripting application programming interface (API) in the package javax.script. It contains a script engine (or interpreter) to evaluate scripts. The scripts can be written in languages such as Rhino JavaScript, Groovy, Jython, or JRuby.

This book is a documentation of the Nashorn script language, which was introduced in Java 8 (Nashorn is the German word for rhino). The link between Java and JavaScript is reciprocal: Java can interpret JavaScript and JavaScript can use Java classes.

The first part of the book describes the advantages of using the Java scripting API and contains examples of executing scripts in Java. The source code is available for download. The largest part of the book describes the Nashorn scripting language. The language is fully compatible with JavaScript, but contains other new elements. It also allows Java to use the functions declared in the scripting language. The next part shows how to use Java classes in a Nashorn script.

The last chapters are about the command-line tools, integrating with JavaFX (the new Java graphical user interface (GUI) library intended to replace Swing), and debugging techniques.

The book is well organized and rich in information. It is not intended for beginners to scripting, but for developers who have a good understanding of the various scripting languages and the relation between Java and JavaScript.

Reviewer:  Claudiu Popescu Review #: CR143435 (1508-0650)
Bookmark and Share
  Featured Reviewer  
 
Object-Oriented Programming (D.1.5 )
 
 
Javascript (D.3.2 ... )
 
Would you recommend this review?
yes
no
Other reviews under "Object-Oriented Programming": Date
Object-oriented programming systems, languages, and applications
Paepcke A.  Object-oriented programming systems, languages, and applications,Phoenix, AZ,Oct 6-Oct 11, 1991,1991. Type: Whole Proceedings
Oct 1 1992
Object lifecycles
Shlaer S., Mellor S., Yourdon Press, Upper Saddle River, NJ, 1992. Type: Book (9780136299400)
Apr 1 1993
Object-oriented programming
Voss G., Osborne/McGraw-Hill, Berkeley, CA, 1991. Type: Book (9780078816826)
Oct 1 1992
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy