Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / March 2005

Tip: Looking for answers? Try searching our database.

Trouble getting started:  NoClassDefFoundError

Thread view: 
Craig Barrington - 15 Mar 2005 00:41 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.