Java Web Start

No replies
Offline
Joined: 11/18/2012

How to run a executable jar file in a webpage using java web start instead of creating an applet. I tried to follow the examples that are included in the official java oracle documents but im still encountering a problem. i tried to create a JNLP file that will call the java web start that will run the jar but still no luck .

 

 

JNLP file

 

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
        codebase="C:\env3d_template\dist"
        href="this.jnlp">
    <information>
        <title>test</title>
        <vendor>test</vendor>
        <offline-allowed/>
    </information>
    <resources>
        <!-- Application Resources -->
        <j2se version="1.6+"
            href="http://java.sun.com/products/autodl/j2se"/>
        <jar href="env3d_template.jar" main="true" />
 
    </resources>
    <application-desc
         name="Test"
         main-class="Game">
     </application-desc>
</jnlp>