I am trying to run two different programs created by classmates, both programs compile but when I try to run them I am getting the following error:
"Exception in thead "main" java.lang.NoClassDefFoundError: <wrong name>
Could not find the main class"
Both classmates insist that their programs run fine on thier computers. Also I have no porblems running my own assignment as well as assignments for other classmates.
I did a bit of research and found on java.sun that the error is telling me the definition of the class file exists at compile time but can no longer be found.
Is there anything that I am doing wrong? Another classmate told me to add -classpath . classname when running it from the command window but this also did not work.
Any advice woud be appreciated. Thanks