Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

"cannot find symbol" error message

807597Oct 5 2005 — edited Aug 26 2010
I tried compiling a program that instantiates an object of another class from a separate .java file. However, both .java files are in the same directory. I've never encountered this problem before, and I know some path variable must be wrong somewhere but I don't where. I also tried added a main method to the class I was trying to instantiate an object of ( from the separate .java file ), and then successfully compiled that separate file, but when I try to run it I get a runtime exception that says: "Exception in thread "main" java.lang.NoClassDefFoundError". I know the problem is not in the program itself because the entire program compiled and ran seemingly without any kind of error on a different computer, so there must be some sort of problem with my computer. Thanks in advance for any help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 23 2010
Added on Oct 5 2005
27 comments
3,778 views