Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Help needed on java.lang.NoClassDefFoundError
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.

Report this thread to moderator Post Follow-up to this message
Old Post
Abhijit Gadekar
09-30-04 04:37 PM


Re: Help needed on java.lang.NoClassDefFoundError
On 30 Sep 2004 06:44:20 -0700, Abhijit Gadekar <abhijitgadekar@yahoo.com>
wrote:

> 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.


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.

--

Whom the gods wish to destroy they first call promising.

Report this thread to moderator Post Follow-up to this message
Old Post
Stefan Schulz
09-30-04 04:37 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:39 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.