I am new to Eclipse ver. 3.0.0, and have a problem getting started. When I
try to run any swt examples, I always get the same error:
java.lang.NoClassDefFoundError: and
Exception in thread "main"
In a similar situation, someone suggested looking at the CLASSPATH. I
don't see a CLASSPATH variable (all
in upper case), but in the "Create, manage, and run configurations" dialog
box (found under Run, Run...); under the Classpath tab, there is a
classpath window. There is a tree there. If I could attach a picture,
that would do it. I don't see how to do that yet. So, in that window is:
- {icon1} Bootstrap Entries
{icon2} JRE System Library [jre1.5.0_01]
- {icon1} User Entries
- {icon3} Hello World (default classpath)
{icon3} Hello World
{icon4} swt.jar -C:\Documents and Settings\All Users\Docu...
Where the iconXs refer to little icons, and the elipses are where the text
runs off the box.
So, as far as I know, this answers the question: "What is your CLASSPATH?"
Any new suggestions?
Craig
klynn47@comcast.net - 15 Mar 2005 02:38 GMT
Not exactly. The NoClassDefFound error is going to happen if the .class
file that you're trying to interpret isn't found in the CLASSPATH.