Problems getting jar file running locally
There is an applet I found on the web that I want to get running locally on my PC. It allows you to play old text adventures such as Zork in a browser and is called Zplet. I downloaded the jar file from the source (it won't let me post the link but I got it from sourceforge.net) so the code should not be the problem. Here are the main things I have tried to get this running.
1) Copied the source html code (see below) from a website that has Zplet running and modified the names to match what I am using. Put that in the same folder as the Zplet.jar file along with the story file (the game file). Doing this I get an exception as detailed below.
<title>Zplet: PLANETFALL: INTERLOGIC Science Fiction</title>
<applet code="Zplet.class" archive="Zplet.jar" width=512 height=387>
<param name="Foreground" value="white">
<param name="Background" value="black">
<param name="StatusForeground" value="black">
<param name="StatusBackground" value="white">
<param name="StoryFile" value="planetfall.z3">
Please note that SAVE and RESTORE may not available due to
applet security restrictions. Leaving this page may or may
not restart the game depending on the behavior of your browser.
load: class Zplet.class not found.
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: C:\Documents and Settings\Development\Desktop\Java Test\Zplet\Zplet\class.class (The system cannot find the file specified)
Exception: java.lang.ClassNotFoundException: Zplet.class
I opened the jar file and verified that there is a class named Zplet.class inside (and case is the same as well). The code is a bit complicated though with many folders so the class is not in the root. It is in russotto\zplet. Do I somehow need to tell it about this path or can java search through the jar file for it? If I need to specify the location inside the jar how do you do that exactly?
2) I also tried to uncompress the jar file and tried working with the Zplet.class directly. I placed the html file in the same location as the class and modified it by removing the archive section. In this case I get a different error as seen below.
java.lang.NoClassDefFoundError: Zplet (wrong name: russotto/zplet/Zplet)
Exception: java.lang.NoClassDefFoundError: Zplet (wrong name: russotto/zplet/Zplet)
I'm not sure what this means exactly but by the fact that it has russotto/zplet in there I'm guessing the code has this path hard coded in it.
Any clue what I'm doing wrong? It seems to be a problem with paths or something but I don't have the experience to figure this out. Can anyone help? I have virtually no experience with applets so please be gentle.
Oh and I'm using Windows XP, IE 7.0 and the latest JRE if that matters.