Skip to content

Instantly share code, notes, and snippets.

@lorenzoongithub
Last active September 6, 2019 19:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorenzoongithub/7d3a8106847f37e089f7d48de67fa620 to your computer and use it in GitHub Desktop.
Save lorenzoongithub/7d3a8106847f37e089f7d48de67fa620 to your computer and use it in GitHub Desktop.
Snippet of Java code to make your Java application accessible to the browser. It's meant for use during development to provide an environment for experimenting with code against a running application.
// nudge4j - bootstrap
try {
new javax.script.ScriptEngineManager()
.getEngineByName("JavaScript")
.eval("load('http://lorenzoongithub.github.io/nudge4j/twigs/n4j.boot.js')");
} catch (javax.script.ScriptException e) {
throw new RuntimeException(e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment