When I renamed the class file to Audiodriver.cla ss and changed the link to Audiodriver.cla ss, the game wouldn't load. I got this error
The applet html code, with everything in the same folder.
[HTML]<applet width="400" height="300" name="Audiodriv er" code="Audiodriv er.class"></applet>[/HTML]
Also, the images do NOT reflect the image file. I see connectfour sign instead of a 'we can do it' sign. I use a cPanel interface, whose cache may be part of the problem.
All files, images are in the same folder, which each version of the game having a separate folder.
Part of the java source code is:
Any clues as to what is going on?
Thanks!
Code:
java.lang.NoClassDefFoundError: Audiodriver (wrong name: Driver) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) 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) Exception in thread "Thread-417" 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)
[HTML]<applet width="400" height="300" name="Audiodriv er" code="Audiodriv er.class"></applet>[/HTML]
Also, the images do NOT reflect the image file. I see connectfour sign instead of a 'we can do it' sign. I use a cPanel interface, whose cache may be part of the problem.
All files, images are in the same folder, which each version of the game having a separate folder.
Part of the java source code is:
Code:
import java.awt.image.*;
public void init()
{
resize(400, 300);
zoom = new double[26];
for (int t=0;t<25;t++) {
zoom[t] = 200.0/(t+1)-8;
}
offscreenImage = createImage(400,300);
offscreenGraphics =offscreenImage.getGraphics();
cracked=getImage(getCodeBase(),"cracked.gif");
cars[0][0]=getImage(getCodeBase(),"car1f.gif");
cars[0][1]=getImage(getCodeBase(),"car1b.gif");
cars[1][0]=getImage(getCodeBase(),"car2f.gif");
cars[1][1]=getImage(getCodeBase(),"car2b.gif");
cars[2][0]=getImage(getCodeBase(),"car3f.gif");
cars[2][1]=getImage(getCodeBase(),"car3b.gif");
signs[0]=getImage(getCodeBase(),"banner1.gif");
signs[1]=getImage(getCodeBase(),"banner2.gif");
signs[2]=getImage(getCodeBase(),"banner3.gif");
tree=getImage(getCodeBase(),"tree1.gif");
bush=getImage(getCodeBase(),"tree2.gif");
post=getImage(getCodeBase(),"post.gif");
backdrop = createImage(800,600);
drawBG(backdrop.getGraphics());
Thanks!
Comment