How do I create a Webstart app?

Alright, this is probably a very newbie question, however I’ve never used webstart before in my life.
I have looked all over the sun website and through this website, but it doesn’t say anywhere.

How do I make a webstart link that will run my application?

-Make an application that runs from jars (eg all media loaded with relative pathes ala getClass().getResource(…) or getResourceAsStream(…))
-Ensure that your webserver has setup the jnlp mimetype correctly
-Write a jnlp file… it’s pretty easy actually.

Either read the stuff here:
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/index.html

Or pickup a jnlp from someone else and edit the bits you want to change.

thanks a lot, do you happen to have a jnlp file?

http://www.puppygames.net/downloads/superdudester.jnlp

Cas :slight_smile:

hmmm… I tried to copy the way you loaded the icon, Cas, and it won’t work for me. Any idea what’s wrong with this?


 <information>
    <title>Rimscape</title>
    <vendor>GameLizard.com</vendor>
    <homepage href="http://www.gamelizard.com" />
    <icon href="http://www.gamelizard.com/webstart/icon.gif" kind="default"/>
    <description>2D Space Action/RPG game.  Make friends or enemies as you fight to survive and trade for enhancements during your quest to find the long lost world of Earth.</description>
      <offline-allowed/>
  </information>

Looks alright. It should work. Maybe caching is to blame?

Well, what also (should) work is using a path relative to the code base like: