My classes are being compiled into a package. But it uses a class which is not in a package (ie: no package statement). I have set the class path correctly so as to point to the directory containing the class file but still the compiler is not able to find that class. Is there a way to access this class that has no package from a packaged class?
Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
At first I answered : Are you using public on the classes in the default package? But now I found this Could therefore mean that you are out of luck. -Barry [ October 04, 2002: Message edited by: Barry Gaunt ]
In my experience, you cannot do that. I'm not exactly sure why Java was designed to not allow such a thing, but it wasn't. IBM's compiler, jikes, will also not allow you to do that. [ October 05, 2002: Message edited by: Dirk Schreckmann ]