Last active
September 6, 2019 19:48
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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