Packages + Jar file + strange path needed in Jar File
Here's my existing non-jar'd file-structure:
/appletpage.html
/classes/package1/*.class
/images/*.gif
And the existing applet reference in the html file is:
<applet codebase="classes" code="package1.myApp.class" width="620" height="360">
What I would like to do is to put all the gif and class files into one (or two) compact JAR files. BUT the class files all reference the images by using a path like "../../images/image1.gif" which just breaks miserably if I have my class files under the path /package1 in the jar file, because /.. is just NOT a valid path. But if I put the class files under the path /classes/package1 I can't get the package path right in the applet reference as there doesn't seem to be an equivalent to codebase= that works within jar files.
Does anyone have any clever ideas for how to do this *without* editing and recompiling the source files?
/appletpage.html
/classes/package1/*.class
/images/*.gif
And the existing applet reference in the html file is:
<applet codebase="classes" code="package1.myApp.class" width="620" height="360">
What I would like to do is to put all the gif and class files into one (or two) compact JAR files. BUT the class files all reference the images by using a path like "../../images/image1.gif" which just breaks miserably if I have my class files under the path /package1 in the jar file, because /.. is just NOT a valid path. But if I put the class files under the path /classes/package1 I can't get the package path right in the applet reference as there doesn't seem to be an equivalent to codebase= that works within jar files.
Does anyone have any clever ideas for how to do this *without* editing and recompiling the source files?
