Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Referencing classes in a prev. directory

1 view
Skip to first unread message

Kate Wintjen

unread,
Dec 4, 2000, 3:00:00 AM12/4/00
to
I have one driving applet that's in the main directory I'm using. Then, all
the rest of the classes are in a single subdirectory called graph. In each one
of those files, I say "package graph;". In the main applet, I say "include
graph.*;". That's fine. Problem: I need one of those classes in the
subdirectory to be able to talk to the main applet, i.e. call a couple of its
methods. To do this, I tried declaring an instance of it. But, the compiler
says: "cannot resolve symbol". It knows it's supposed to be a class, but
doesn't know of its existence. Is there a way I can make it know of previous
directories in its chain? In other words, can I make the classes in the graph
subdirectory aware of the class one directory up? If not, I'm afraid I'm going
to have to ditch the package idea entirely & put them all in one directory. My
boss probably won't like that, but...

0 new messages