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 / General / June 2007

Tip: Looking for answers? Try searching our database.

Why do I have this error message?

Thread view: 
John - 13 Jun 2007 22:05 GMT
I am using eclipse to compile a java application.

It works fine if I right click the class that contains main. But If I run it
in dos window, I get this error message,

Exception in Thread "main" java.lang.NoClassDefFoundError:

I had this error message a few days ago, then I fixed it, and then I havn't
gone back to command line util today I finished everything and it works fine
if I just right click and Run As..Java application.

When finally I returned to command prompt, the error message came back.

I tried previous version of my application and the same error message. It
doesn't seem to be a problem with my application but I do remember when last
time the error came, I fixed it by going to the proper path.

Now, no matter what I try, I fail.

Anybody can help? I am using windows xp sp2 with the latest eclipse.
Knute Johnson - 13 Jun 2007 22:26 GMT
> I am using eclipse to compile a java application.
>
[quoted text clipped - 16 lines]
>
> Anybody can help? I am using windows xp sp2 with the latest eclipse.

Why don't you show us the output from the terminal including the
interpreter invocation and the complete error?

Signature

Knute Johnson
email s/nospam/knute/

Roedy Green - 15 Jun 2007 10:54 GMT
>Exception in Thread "main" java.lang.NoClassDefFoundError:

See
http://mindprod.com/jgloss/runerrormessages.html#NOCLASSDEFFOUNDERROR

That is my least favourite error message. It has a zillion possible
causes.

I decorate the entry with The Scream, by Edvard Munch.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
richardsosborn@gmail.com - 19 Jun 2007 21:36 GMT
> I am using eclipse to compile a java application.
>
[quoted text clipped - 16 lines]
>
> Anybody can help? I am using windows xp sp2 with the latest eclipse.

The most common causes I find, John, are classpath settings and
mis-using parts of a class's API.  (method signatures)


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.