Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I hide Referenced Libraries in Eclipse's Java EE perspective?

Eclipse's normal Java perspective seems to hide Referenced Libraries just fine (in a "Referenced Libraries" folder in your project). Unfortunately, the Java EE perspective does not seem to have this same feature and enabling it is non-intuitive.

Can anyone shed some light on this issue?

like image 893
Lee Avatar asked Sep 11 '25 08:09

Lee


2 Answers

The "Referenced Libraries" view is available in the Java perspective, in the Package Explorer view.

In the Java EE perspective, the Project Explorer view is the default (as opposed to the Package Explorer view). Therefore, if you wish to view the Referenced Libraries, you must open the Package Explorer view in the Java EE perspective.

Note that this view will not remove the user libraries that have been added to the project. The use of Referenced Libraries is primarily for user jars, or jars internal to the project, often placed under the lib directory of the project.

like image 145
Vineet Reynolds Avatar answered Sep 12 '25 22:09

Vineet Reynolds


I am currently on a Mac using:

Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 1
in the Java EE perspective

To the right of the project explorer tab, there should be a tiny white arrow facing down that opens up a drop down, choose "Customize View..."

It opens a window titled "Available Customizations" with the "Filters" tab in focus.

Check the box for "Libraries from external" and press okay.

like image 43
Jesse Avatar answered Sep 12 '25 21:09

Jesse