Nashorn: Java & JavaScript. Shaken, Not Stirred
Nashorn: Java & JavaScript. Shaken, Not Stirred
Table of Contents
Example application demonstrates usage of Scripting API for Java platform (JSR-223) with Nashorn JavaScript engine.
Presented on:
Content:
Used technologies
How to build
Java
./gradlew clean build
How to run
-
build the application with JDK8
-
download Glassfish 4 Java EE 7
-
unpack in any directory
-
go to glassfish_dir/bin start server with command
./asadmin start-domain domain1
-
grab war file from build\lib directory and drop it to glassfish_dir/glassfish/domains/domain1/autodeploy directory
-
once you’ll see
nashorn_demo.war_deployed
using browser go to URL http://localhost:8080/nashorn_demo
Additional Reading
Problems, questions, feedback
Welcome to issue tracker.