This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 5852
    
    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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: While running any java class in eclipse then getting error.
 
It's not a secret anymore!