- Make jar file of your class files and resources like icons, images etc. using following command:
jar cf JarFileToCreate.jar abc.class def.class ...
For More details on creating Jar files, see create-jar-file-for-java-app - Make jnlp extension text file with following information:
<?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://localhost/jnlp" href="MyApp.jnlp"> <information> <title>My App Title</title> <vendor>MonishVendor</vendor> </information> <resources> <!-- Application Resources --> <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/> <jar href="TestApp.jar" main="true" /> </resources> <application-desc name="DemoName" main-class="GUI_QPDownloader" width="300" height="300"> </application-desc> <update check="background"/> </jnlp>
- That's all. Now run jnlp file from any web-browser to test
Steps for Java Web Start
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment