Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

package does not exist

807603Feb 1 2008 — edited Feb 2 2008
Hi,

I'm editing an already-existing program. There's a top-level class, and then there are all these different classes that extend it.

In one class that extends the top-level class, there's an "import" line. All I'm trying to do is move it from this class to the top-level class so that all the "extending" classes can use it. (Hope this makes sense) But I keep getting the error that the package does not exist when I move the import line from one file to the other.

What I don't understand is that the file that's specified in the import line is an absolute path. How can it work in one file and not in another? It makes no sense.

Any help appreciated. Thanks :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 1 2008
Added on Feb 1 2008
8 comments
464 views