Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Erica Matthews   on Apr 26 In Java Category.

  
Question Answered By: Leon Evans   on Apr 26

This is the most common exception  for the new java  developers. Your
current path is not defined in class  path variable so thats why the
error comes. Please type the following line at prompt before running
your program

SET CLASSPATH=%CLASSPATH%;\.

here I typed the dot means your current directory on the classpath
now and now your class is on the path run it and enjoy.

Let me know, is you problem resolved??

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Exception in thread "main" java.lang.NoClassDefFoundError Or get search suggestion and latest updates.


Tagged: