This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread 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 Java Interview Guide this week in the Jobs Discussion 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
I agree. Here's the link:
subject: No class defination found
It's not a secret anymore!