On several different occasions, I have seen a good reason to put some classes into a package so that I can refer to them from other projects without having to copy them into the project itself, but here’s the thing: it NEVER works. I’ve tried every permutation of package name/folder hierarchy that I can think of, and I always run into a problem somewhere that makes the package unusable. I am sure this is simple, every tutorial and guide I’ve read is simple, but I need some help. Is there a caveat that I am unaware of?
My current attempt goes as follows (top folder is pack b/c I ended up moving it to a test folder):
folder: pack
—folder: drawable
------DrawableInt
------DrawableGrid
------…
------DrawableObject
They all belong to the package pack.drawable, and the other classes extend DrawableObject. The current problem is that the subclasses cannot find DrawableObject as soon as I add the package, even though I have the . in my classpath.
So which guru sees the blatant error I’m making? :