You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Do Phil <Ph...@irs.gov> on 2000/09/14 21:05:53 UTC
Package compile error
Hi all,
I have two simple files in a package named "Users". A basic definition of
the two classes are listed below. When I try to compile the file
"ClassB.java", I receive the error "Superclass Users.ClassA of class
Users.ClassB not found." However, things work fine when I remove the
"package Users;" lines and use unnamed package. Can somebody please tell me
what I am doing wrong here or how to declare/use packages?
//File: ClassA.java
package Users;
import java.io.*;
public class ClassA
{
...........
}
//File: ClassB.java
package Users;
import java.io.*;
public class ClassB extends ClassA
{
........
}
Thanks
Phil Do