how to use webstart

Hey all i have searched the forum, I have also found some guides but they havent worked so far so I though i would ask.

how do I make a .jnlp file so that I can webstart it.

Do you use Netbeans? If so, you can enable webstart for your project in the project properties. There must be a run or application category in the settings, where you can check the option.

Have you tried Kevin Glass’ webstart tutorial here: http://www.cokeandcode.com/webstarthowto?

yeah the coke and code one was one of the “doesnt work for me” ones :frowning:

What errors are you getting? Also does your application require the use of any external libraries like Slick or Jogl?

This is the jnlp template that I use [saved as yourJnlp.jnlp]:

<?xml version="1.0" encoding="utf-8"?>
<!-- Web Start Deployment -->
<jnlp
  spec="1.0+"
  codebase="http://www.yourWebsiteCodebase.com"
  href="yourJnlp.jnlp">
  <information>
    <title>Your Title</title>
    <vendor>You</vendor>    
    <description>Your Description</description>
    <description kind="short">Your Short Description</description>
    <offline-allowed/>
  </information>
  <security>
  </security>
  <resources>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
    <jar href="yourJar.jar" main="true" download="eager"/>
  </resources>

  <resources os="Windows">
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
  </resources>
  <resources os="SunOS" arch="sparc">
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
  </resources>
  <resources os="Linux">
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
  </resources>
  <resources os="Mac OS">
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
  </resources>
  <application-desc main-class="yourMainClass">
  </application-desc>
</jnlp>