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
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
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake: