gstackoverflow
gstackoverflow

Reputation: 37034

Eclipse doesn't see class/package in import

I use eclipse.

my problem description:

In import I see red underlyed strings. But if I navigate - I see source code.

How does it dispay?

enter image description here

enter image description here

How can I fix it?

Upvotes: 0

Views: 6542

Answers (2)

Basilevs
Basilevs

Reputation: 23896

Right-click on the folder containing "com/epam/dentsply/service" and choose "Build Path/Use as Source Folder". Be sure to select the one directly containing the "com" directory with your java files.

Upvotes: 0

Michael
Michael

Reputation: 291

You must adjust the project's build path, so it contains the missing packages.

Long answer You may navigate every class that is known to the workspace. But if they are underlined it means they are not available when building the project.

Click on the node "Referenced Libraries" to see what's included. If your imported package JAR is not listed there, adjust the build path.

Upvotes: 2

Related Questions