This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
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.
Joined: Aug 19, 2005
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?
Joined: Mar 22, 2005
This should actually be CODE="com.rephunk.PunnettApplet.class" , because it is a class name, not a directory path.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com