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 / September 2004

Tip: Looking for answers? Try searching our database.

Help needed on java.lang.NoClassDefFoundError

Thread view: 
Abhijit Gadekar - 30 Sep 2004 14:44 GMT
Hi all,
I have added my classes to a project.I am using JBuilder.On
compilation I do not get any errors for the classes I have added.But
when I run the project I get java.lang.NoClassDefFoundError for the
classes I have
added.I tried setting the environment variable CLASS_PATH for that
specific class.But it did not work.Please let me know if you know
anything about this.

Regards,
Abhijit.
Stefan Schulz - 30 Sep 2004 15:14 GMT
> Hi all,
> I have added my classes to a project.I am using JBuilder.On
[quoted text clipped - 4 lines]
> specific class.But it did not work.Please let me know if you know
> anything about this.

While i can only guess what you actually mean, i guess you have a problem
with your CLASSPATH (no underscore). Set it to the directory that contains
the root of your package tree (if your class my.package.MyClass is saved as
C:\somedir\my\package\MyClass.class, set CLASSPATH to C:\somedir\).

Also, NoClassDefFoundError's are often thrown if you try to run a java  
program
and type java MainType.class instead of java MainType.

Signature

Whom the gods wish to destroy they first call promising.



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.