While running any java class in eclipse then getting error.
posted 4 years ago
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???
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.