Skip to content

Instantly share code, notes, and snippets.

@rladstaetter
Last active December 23, 2015 02:48
Show Gist options
  • Save rladstaetter/6568971 to your computer and use it in GitHub Desktop.
Save rladstaetter/6568971 to your computer and use it in GitHub Desktop.
invoking javascript via JSR223
import javax.script.ScriptEngineManager
object NashornHelloWorld {
def main(args: Array[String]): Unit = {
new ScriptEngineManager().getEngineByName("nashorn").eval("print('Hello, World')")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment