Is there a way to make empty packages visible in Eclipse?
While I'm not sure how to perfectly solve the problem, I do know that you can still access the package if you try creating a new file in there, for example package-info.java.
Try doing that by starting to add a Class as usual, but specify the package to be the package you can't seem to access in the Package Explorer.
In "Project Explorer" panel, click on the "View Menu" button (represented as a triangle). Then go to "Customize View..." and deselect "Empty parent packages".
This should do the trick.
In recent versions of Eclipse, the steps in the accepted answer have slightly changed:
- In
Project Explorer
panel,click onView Menu
button - Then click on
Filter
- Deselect
Empty Parent Packages
Eclipse IDE for Java Developers | Version: Photon Release (4.8.0) Build id: 20180619-1200