My applet games don't seem to work with 1.5 plugin.

I recently upgraded my browser to use the latest version of the Java plugin, but now the applet games I wrote a few years ago no longer work. Anyone know of a reason why this would be? My games can be found at:

http://www.dayglofishermen.com (navigate to the games page).

The games were written in Java 1.1 and are not in jars (separate class files/gifs etc.).

Can anyone point me in the right direction?

Regards…

Here’s the stacktrace that I got. It seems that the class loader can’t find the game!

load: class dayglounderworld.DaygloUnderworld.class not found.
java.lang.ClassNotFoundException: dayglounderworld.DaygloUnderworld.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
… 10 more
Exception in thread “Thread-8” java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread “thread applet-dayglounderworld.DaygloUnderworld.class” java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Yes, I’ve seen that stack trace. The games work on my local copy of the website, but not once I upload. It used to work (I have changed nothing). The urls are relative. Is it some security setting new to the latest plugin?

I noticed that in your .jar file the classes are not in the right package. I expected “dayglounderworld.DaygloUnderworld.class” to be in a directory called “dayglounderworld”, but it’s in the root instead (default package).
Furthermore, you could try to define the main-class in the manifest.

If you last compiled them with 1.1 they won’t be found by jre 1.3+ as the format changed or something. You’ll need to recompile them with a more recent jdk.

Or maybe not.

I agree with erikd. I tried repackaging the files, but still wasn’t getting any joy.
The Java 1.1 bytecode ought to still work.