tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Do Phil <Phil...@irs.gov>
Subject Package compile error
Date Thu, 14 Sep 2000 19:05:53 GMT

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


Mime
View raw message