Java & JavaScript. Shaken, Not Stirred. Code samples form my Nashorn and Scripting API (JSR-223) presentation.
JavaScript CSS Java Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
README.adoc
build.gradle
gradlew
gradlew.bat
run.sh
shot.jpg

README.adoc

Nashorn: Java & JavaScript. Shaken, Not Stirred

Nashorn: Java & JavaScript. Shaken, Not Stirred

Example application demonstrates usage of Scripting API for Java platform (JSR-223) with Nashorn JavaScript engine.

Presented on:

Content:

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

shot

Problems, questions, feedback

Welcome to issue tracker.