[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem running Java code



This exception says that the JVM couldn't find the class
"javax/swing/JPanel".  That class name looks like it is really a path
for the class javax.swing.JPanel.  You need to make sure that you have
swing in your CLASSPATH (ex, get the swingall.jar file from sun's web
page) or check with kaffe about included libs.

Swing is included in Sun's jdk 1.2+ and the swingall.jar file can be
used to get swing in Sun's jdk 1.1.x.

I haven't played with kaffe very much, although at my present job I am
doing Java development.  (using vim+jbuilder+jdk1.1.8+swing)

HTH,
-D

On Sat, Jan 06, 2001 at 10:51:18AM -0800, Kenward Vaughan wrote:
|   daddy:~# jchempaint
|   java.lang.NoClassDefFoundError: javax/swing/JPanel
| 	at java.lang.Class.forName(Class.java:native)
| 	at java.lang.Class.forName(Class.java:52)
| 	at kaffe.jar.ExecJarName.main(ExecJarName.java:58)
| 	at kaffe.jar.ExecJar.main(ExecJar.java:59)
 



Reply to: