Skip to content

gAmUssA/java-scripting-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Java & JavaScript. Shaken, Not Stirred. Code samples form my Nashorn and Scripting API (JSR-223) presentation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published