File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes cannot resolve symbol, class error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "cannot resolve symbol, class error" Watch "cannot resolve symbol, class error" New topic

cannot resolve symbol, class error


Joined: Mar 26, 2001
Posts: 1
I'm new to java, but understand the fundamentals of classes, but when I compile code that references a class in the same directory I get an error that the compiler can't find the class named.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
You need to make sure that you Path and Classpath variables are set correctly.
The path needs to include the directory that has the other classes in it. Something like

The classpath (for executing) has to contain the directory that the JRE jar files are in and the directories that you have your class.
Here is the official doco on how to set them:

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: cannot resolve symbol, class error
jQuery in Action, 3rd edition