File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot resolve symbol, class error