aspose file tools
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "No class defination found" Watch "No class defination found" New topic

No class defination found

Anuja Navare

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.
Cindy Glass
"The Hood"

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
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
subject: No class defination found