I get a NoClassDefFound error for com/rephunk/GraphPanel. GraphPanel is the first class used from the kclasses.jar. I checked that it is in the jar file and it does have the package statement, and the kclasses.jar file is in the myclasses directory.
Any help would be greatly appreciated!
-Karen.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35247
7
posted
0
So com\rephunk\PunnettApplet is in punnettjar.jar, and com/rephunk/GraphPanel is in kclasses.jar? I'm not quite sure if this is the problem, but not all classloaders like having classes of the same package split over several jar files. Try using just a single jar.
Now I have put all of my "generic" classes into a package (com.rephunk.myclasses), and kept the applet class out of the package. Appletviewer still will not show me the applet, with the same error message. If I make some manual changes to the applet file to allow it to run as an application, everything is fine.
Am I just missing something in the tag?
-Karen.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35247
7
posted
0
CODE="com\rephunk\PunnettApplet.class"
This should actually be CODE="com.rephunk.PunnettApplet.class" , because it is a class name, not a directory path.