Code Comments
Programming Forum and web based access to our favorite programming groups.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.
Post Follow-up to this messageOn 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.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.