> package collector.data;
> public abstract class Record {
[quoted text clipped - 6 lines]
> The compiler displays an error message saying Record.class can't be
> found. These classes are in the same directory, and both declared public.
Here is the same code:
I place 2 classes in the same directory as yours.
package collector.data;
public abstract class Record {
public abstract void printHello();
}
and
package collector.data;
public class Album extends Record {
public static void main(String argv[]){
Album myAlbum = new Album();
myAlbum.printHello();
}
public void printHello() {
System.out.println("Hello.");
}
}
With these import I don't have any error. What kind of IDE do you use ? I
suggest you to use Eclipse (eclipse.org) it prevents you of a lot of errors
;o)
Luc Van Bogaert - 29 Feb 2004 23:40 GMT
> With these import I don't have any error. What kind of IDE do you use ? I
> suggest you to use Eclipse (eclipse.org) it prevents you of a lot of errors
I don't use an IDE, just a programmers editor, and I compile from my
file manager app. I have found the problem already : I have to start
javac.exe from my main project dir instead of one of the package
subdirectories, or otherwise specify the classpath to include the
required paths for my project.
Thanks for your help.

Signature
Luc Van Bogaert