In my current project I have been managing resources using zip files, however want to offer a webstart deployment (especially for sharing). However I am now getting a null pointer exception on the following line, or access denied if I copy resources.jar into the main jar file:
resources = new ZipFile(Stroll.class.getClassLoader().getResource("resources.jar").getFile());
They are stored in the same directories in the server, and this executes fine within eclipse and on the desktop. I am not trying to access anything special so I’m running in a sandbox with the following jnlp file (stroll.jnlp)
EDIT: URL above updated
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="http://www.thedrugzone.co.uk" href="stroll.jnlp">
<information>
<title>Stroll: On Drugs</title>
<vendor>Early Interventions Team</vendor>
<icon href="/images/logoEit.gif"/>
<homepage ref="/games.html"/>
<offline-allowed/>
</information>
<resources>
<j2se version="1.5+"/>
<jar href="stroll.jar"/>
<jar href="resources.jar"/>
</resources>
<application-desc main-class="org.konelabs.stroll.v1.execute.StrollFrame"/>
</jnlp>