i am new to
java and i developed following code. i am not able to compile these files. i am getting error while compiling second file
C:/Code/foo >javac Person.java
C:/Code/foo >javac Employee.java
Employee.java:2: cannot resolve symbol
symbol : class Person
location: class foo.Employee
public class Employee extends Person
^
1 error
following are code
Person.java
package foo;
public abstract class Person
{
private
String name;
public String getName() { return this.name;}
public void setName(String name){ this.name=name; }
}
Employee.java
package foo;
public class Employee extends Person
{
private int empID;
public int getEmpID() { return empID; }
public void setEmpID(int empID) {this.empID=empID;}
}
settings
set JAVA_HOME="C:\JDK1.4";
set CLASSPATH=".;C:\JDK1.4\LIB;C:\JDK1.4\LIB\TOOLS.JAR;C:\JDK1.4\BIN;"