Java lwjgl applet noclassdeffound
I'm trying to use my java applet on a html document but It just keeps
giving the same errors over and over again. I'm using eclipse. When i
debug/run the applet it all works fine, but when I export it to a jar file
and try to use it with a html document it gives this error:
java.lang.NoClassDefFoundError: org/newdawn/slick/opengl/Texture
Here is my java code: http://pastebin.com/B3R6nj1a
This is what the .jar file contains:
-lib
-jars
lwjgl.jar
lwjgl_util.jar
slick-util.jar
-natives-win
*all the dlls*
-META-INF
-*files*
-res
grass.png
wood.png
.classpath
.project
Camera.class
Main$1.class
Main$2.class
Main.class
I do have everything right in the build path from my project. (So added
the three external jars. And added native-win to lwjgl.jar)
This is my html code:
<html>
<head>
</head>
<body>
<applet archive='3dtest.jar' Code='Main' width = "640" height =
"480"></applet>
</body>
</html>
I've also tried to change "Code='Main' " to "Code='Main.class'" also
didn't work.
Does anybody has any idea why I'm getting the error? Thanks in advance.
-Tim
No comments:
Post a Comment