I have an applet which is directly in my html page. It uses 4 other files. I am getting a NoClassDefFound error. My html file is in the same directory as my .class files, and looks like this:
<html>
<body>
<h1>Here is my Asteroids game!</h1>
<applet codebase = "." code = "Asteroids.class" name = "Asteroids" width = "640" height = "480" hspace = "0" vspace = "0" align = "middle">
</applet>
</body>
</html>
I'm using internet explorer, and my other applets work fine. Do I need to include the other files in my <applet>
tag?
Full error:
Java Plug-in 10.6.2.24
Using JRE version 1.7.0_06-b24 Java HotSpot(TM) Client VM
User home directory = C:\Users\Stafford
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
Stack trace:
asteroids:(wrong name asteroids/Asteroids)