This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes No class defination found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "No class defination found" Watch "No class defination found" New topic
Author

No class defination found

Anuja Navare
Greenhorn

Joined: May 13, 2001
Posts: 6
When I try to run a program, it gives me error - "exception in main thread - NoClassDefFounderror - myprogramname" The progam has compiled without errors. I have added the directoy where my program is in the dos path & still it's giving this error. Any ideas??
Please help.
Thanks!
Anuja
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Is the class file in your classpath? Or better yet, have you SET your classpath yet?
Go to the DOS prompt and type
>set
and see if there is a classpath parameter and what it is set to.
The path parameter is just for executables. the classpath parameter is for classes that you want the JVM to find.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No class defination found