• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError

 
igwe kalu kalu ogba
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have this strange problem. My jdk worked perfectly last week. However now, I can still compile files with javac, and if I type java in my command line (shell) it is recognized and a list of different uses of java is listed. However, When I try to run my files I get this error:

java.lang.NoClassDefFoundError : getPayXML

Where getPayXML is the name of the class I just compiled. I really dont understand this. Can anyone help me with this? I have java_home set. Thanks.
 
Bajji Pat
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably a classpath problem!! Did u try setting the classpath??

Could u pls post the code??
[ June 13, 2005: Message edited by: Bajji Pat ]
 
santosh borse
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Denitely it is a path problem, just remove the settings made by u in classpath and compile and rum again.

Regards,
Santosh
 
igwe kalu kalu ogba
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, it works now. It seems that some program or person overwrote my classpath. I changed it to read classpath = .

Thanks.
 
Richard Anderson
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd recommend a class name that doesn't look like a method as well ;-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic