Hey guys once again im having trouble with getting my application to be a webstart.
So like i said in my making an signing jars post im using a combination of kev’s coke and coke webstart and the suns webstart tutorials.
Now i have my jar working and signed i can pass it to another computer and when you double click it it opens and runs. So the only thing i see left is creating the .jnlp file and linking to it. So i atempted copying kev’s from his tutorial editing the fiels to make it work for me. Now before i post it up on the website i figured id test it like i do html files. You know double click it and it opens and runs. I think this could be one error because the jnlp has under get code base the url for where its located.
well hers the jnlp and a description of my errors
<?xml version="1.0" encoding="utf-8"?>
<!-- Test for Great Gunner Web Start Deployment thanks to kev glass -->
<jnlp
spec="1.0+"
codebase="http://www.theonlineimage.com/greatgunner/webstart"
href="greatgunner.jnlp">
<information>
<title>Great Gunner</title>
<vendor>Mike Pellecchia - Little M Games</vendor>
<homepage href="http://www.theonlineimage.com"/>
<description>Great Gunner v1.0</description>
<description kind="short">A simple vertical scrolling shooter my first game</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
<jar href="GreatGunner.jar"/>
</resources>
<resources os="Windows">
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
<jar href="lib/jogl-win32.jar"/>
</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/>
</jnlp>
and when i click the file which is located in the same folder as the jar i get the java starting splash like you would with any webstart then a unable to launch application error with the following details
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://www.theonlineimage.com/greatgunner/webstart/greatgunner.jnlp
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
so i am thinking that the issue is that i don’t have it posted up at the url i have specified yet. Which i wont have the ability to test for a few more days because www.theonlineimage.com is my buddies site that I’m going to host my game from.
Thanks in advance for any tip help and advice hopefully once i get this figured out ill post a link for everyone to try the game.
Mike