I defined public enum ABC in ABC.java and then compiled it to ABC.class.
In another XYZ.java, I use private ABC _abc.
XYZ and ABC are in some package.
But it tells cannot find symbol class ABC.
What is wrong?
package teacherII;
public enum Semester {
Fall1999, Spring2000, Fall2000,
Spring2001, Fall2001, Spring2002, Fall2002,
Fall2003, Spring2004
}
In the other file, I use
package teacherII;
public class Questionnaire {
private Semester _semester;
Compile command: javac -d ../classes/ Questionnaire.java
The Semester.class is at ../class/teacherII/Semester.class. It was there BEFORE I compile Questionnaire.java
Thank you guys so much for your reply. The season is that, as Chris and Vineet said, I didn't set classpath when compiling Questionnair. It works now. Thank you guys again!