Ok buddies, I need your help!
I made a Java applet, but I can't get it to run in my Browser (IE5.5). It always says: "class XYZ not found". XYZ is something like package.classname, for example "mapgen.MapGenApplet". All my source files are in the mapgen package, MapGenApplet is my Applet class. Whatever I tried, it always claimed "class not found". I even tried not to pack my files into packages, but it doesn't help. The worst is, I have found some examples which work just perfect and if I try to copy them 1:1 for my own code, nothing works! The applet tag I use is the following:
[APPLET
CODEBASE = "."
CODE = "mapgen.MapGenApplet.class"
NAME = "MapGenApplet"
WIDTH = 400
HEIGHT = 300
HSPACE = 0
VSPACE = 0
ALIGN = top
]
[/APPLET]
I exchanged the "<" and ">" braces with "[" and "]" braces, to not confuse the forum. I have used "<" and ">" in my HTML files, of course.
The code is in a "mapgen" subdirectory of the directory the HTML file is located in. In the mapgen dir is the "MapGenApplet.class" file. The funny thing is, JBuilder, the IDE I use, can automatically generate a HTML file to test an applet, and in the IDE it works! But as soon as I try to launch the exact same HTML file in IE nothing works, just "class not found".
So if you know what I am doing wrong please tell me! I tried the whole day, and nothing worked. Don't forget, every applet I found, which wasn't made by me, did work in IE!
--------------------------
I am not a vegetarian because I love animals; I am a vegetarian because I hate plants.
A. Whitney Brown
I made a Java applet, but I can't get it to run in my Browser (IE5.5). It always says: "class XYZ not found". XYZ is something like package.classname, for example "mapgen.MapGenApplet". All my source files are in the mapgen package, MapGenApplet is my Applet class. Whatever I tried, it always claimed "class not found". I even tried not to pack my files into packages, but it doesn't help. The worst is, I have found some examples which work just perfect and if I try to copy them 1:1 for my own code, nothing works! The applet tag I use is the following:
[APPLET
CODEBASE = "."
CODE = "mapgen.MapGenApplet.class"
NAME = "MapGenApplet"
WIDTH = 400
HEIGHT = 300
HSPACE = 0
VSPACE = 0
ALIGN = top
]
[/APPLET]
I exchanged the "<" and ">" braces with "[" and "]" braces, to not confuse the forum. I have used "<" and ">" in my HTML files, of course.
The code is in a "mapgen" subdirectory of the directory the HTML file is located in. In the mapgen dir is the "MapGenApplet.class" file. The funny thing is, JBuilder, the IDE I use, can automatically generate a HTML file to test an applet, and in the IDE it works! But as soon as I try to launch the exact same HTML file in IE nothing works, just "class not found".
So if you know what I am doing wrong please tell me! I tried the whole day, and nothing worked. Don't forget, every applet I found, which wasn't made by me, did work in IE!
--------------------------
I am not a vegetarian because I love animals; I am a vegetarian because I hate plants.
A. Whitney Brown
Comment