This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "cannot resolve symbol, class error" Watch "cannot resolve symbol, class error" New topic
Author

cannot resolve symbol, class error

t_loww
Greenhorn

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
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"t_loww",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . 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.
Thanks.


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

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
c:\jdk1.3\bin;%PATH%;
or
SET PATH=%PATH%;%JAVAHOME%\BIN

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: http://developer.java.sun.com/developer/onlineTraining/Programming/BasicJava1/windows.html


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: cannot resolve symbol, class error
 
Similar Threads
Problem in Preverifying
Servlet jar file problem--where will i get jar file
TagSupport
Hibernate and Postgresql
Error 500: Can't instantiate class