Skip to content

Instantly share code, notes, and snippets.

@edubkendo
Created February 12, 2013 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edubkendo/4760285 to your computer and use it in GitHub Desktop.
Save edubkendo/4760285 to your computer and use it in GitHub Desktop.
Test page for JRubyFX WebStart app
<html>
<head>
<title>HelloWebStart</title>
</head>
<body>
<h1><a href="hello.jnlp">WebStart JNLP file</a></h1>
<p>
<script src="http://www.java.com/js/deployJava.js"></script>
<script>
// using JavaScript to get location of JNLP file relative to HTML page
var dir = location.href.substring(0, location.href.lastIndexOf('/')+1);
var url = dir + "hello.jnlp";
deployJava.createWebStartLaunchButton(url, '1.6.0');
</script>
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment