Using Joomla 1.5.13
I am building a website. One of the things I wanted to do was add a small game to the website. It's java script. I've uploaded the files and script to my site and if I directly go to the URL it works fine as you can see here:
http://www.aion-on-line.com/images/stories/Interactivefiction/ColossalAdventure.html
Also if I use a wrapper within Joomla it works fine. But if I embed the same script within an Article or Custom HTML module it does not work. I am using 'no editor' to insure the actual code is unchanged.
Here is the error the java script reports:
load: class russotto/zplet/Zplet.class not found.
java.lang.ClassNotFoundException: russotto.zplet.Zplet.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://www.aion-on-line.com/russotto/zplet/Zplet/class.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: russotto.zplet.Zplet.class
and here is the script itself:
<title>Adventure</title>
<hr>
<applet code="russotto/zplet/Zplet.class" width=640 height=400>
<param name="archive" value="ZPlet.jar" />
<param name="StoryFile" value="http://www.AION-On-Line.com/images/stories/Interactivefiction/ColossalAdventure.z5" />
<param name="Foreground" value="black" />
<param name="Background" value="white" />
<param name="StatusForeground" value="black" />
<param name="StatusBackground" value="white" />
</applet>
<hr>
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.
Obviously it is reporting it cannot find the zplet.class file. I have attempted to change the path to that file with every possible combination I can think of but to no avail.
I'll attach the files here if anyone cares to help or wants to play with it. I just cannot get it to work.
Basically the zplet.class file is the emulator. The ColossalAdventure.z5 is the actual data file of the game itself in zcode. The .z5 can be swapped out with other games easily.