Skip to Main Content

Java APIs

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!

cannot resolve symbol

843810Oct 15 2003 — edited Apr 1 2004
I'm a beginner in JAVA and I got this message trying to compile TestEmployee(see below). Employee class compiled OK. Any ideas?

C:\java\chapter3\bin\TestEmployee.java:5: cannot resolve symbol
symbol : class Employee
location: class TestEmployee
Employee tester = new Employee ();


public class Employee
{
private int empNum;
public void setEmpNum(int num)
{
empNum = num;
}
}
--------------------------------
public class TestEmployee
{
public static void main(String[] args)
{
Employee tester = new Employee ();
}
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2004
Added on Oct 15 2003
17 comments
280 views