Hi everyone,
I can't seem to get my package members to recognize each other. I have to files as follows:
and
The files are both saved in a directory called \java\interfacetest. Both \java and \interfacetest are included in the classpath. I only have one j2sdk installed too. I'm just doing some
testing so I can understand casting to interfaces for the
scjp, but I can't get it to compile! Here are the errors:
C:\java\interfacetest\tree.java:2: package interfacetest does not exist
import interfacetest.branch;
^
C:\java\interfacetest\tree.java:4: cannot resolve symbol
symbol : class branch
location: class java.interfacetest.tree
public class tree implements branch
^
C:\java\interfacetest\tree.java:6: cannot resolve symbol
symbol : class branch
location: class java.interfacetest.tree
public static branch b;
^
3 errors
Thanks!