wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes While running any java class in eclipse then getting error. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "While running any java class in eclipse then getting error." Watch "While running any java class in eclipse then getting error." New topic
Author

While running any java class in eclipse then getting error.

sam Agrawal
Greenhorn

Joined: Aug 07, 2011
Posts: 1
While running any java class in eclipse then getting error
java.lang.NoClassDefFoundError: ListInterface(package Name)/MyLinkedList(class Name)
Exception in thread "main"

I also checked the classpath variables through windows-->preferences-->Java-->Build Path--> Classpath Variables,but getting JRE_SRC and JRE_SRCRoot variable showing empty.
So i need to do something with these variable???

please help me to sort it out this issue.

Thanks,
Shyam
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Sam, welcome to Java Ranch!

MyLinkedList must be one of your classes. Please post the source for the class (actually, i am interested only in the package statements and the class declaration). Also, post the full path to this java source file within your project. At this time I suspect that there is a mismatch between the package statement and the file location.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: While running any java class in eclipse then getting error.