Z
zburnham
I'm trying to build a class that references a second class that I've
made. No matter what I seem to do, I get a "cannot find symbol" error
referring to the second class when I go to build it.
The class files are in the same directory, which for the sake of
argument, we'll call /my/path . That is, they're in a folder called
"path" which is inside a folder called "my". I've added "package
my.path;" to the beginning of each class.
I've tried using "import my.path.*;", tried adding the root of this
path (that is, the folder that "my" is in) to my CLASSPATH, tried
referring to the other class as both my.class.Foo and Foo, nothing
seems to work.
It sounds like a CLASSPATH problem, I know, but I can't figure out what
it is that's wrong.
Any suggestions are welcome.
Z
made. No matter what I seem to do, I get a "cannot find symbol" error
referring to the second class when I go to build it.
The class files are in the same directory, which for the sake of
argument, we'll call /my/path . That is, they're in a folder called
"path" which is inside a folder called "my". I've added "package
my.path;" to the beginning of each class.
I've tried using "import my.path.*;", tried adding the root of this
path (that is, the folder that "my" is in) to my CLASSPATH, tried
referring to the other class as both my.class.Foo and Foo, nothing
seems to work.
It sounds like a CLASSPATH problem, I know, but I can't figure out what
it is that's wrong.
Any suggestions are welcome.
Z