Example application demonstrates usage of Scripting API for Java platform (JSR-223) with Nashorn JavaScript engine.
Presented on:
Content:
-
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
Welcome to issue tracker.