Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

While running any java class in eclipse then getting error.

 
sam Agrawal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic