The list of jars just takes up too much space. Can I collapse it or hide it?
-
7Guys, the question is talking about "project explorer" not "package explorer". in Helios, there is no 'Show Referenced Libraries Node' in project explorer.– user659893Mar 15, 2011 at 3:16
-
24Easiest solution: use Windows >> Show View >> Package Explorer instead– AlexMay 10, 2012 at 13:44
-
1I have the same problem in Eclipse 4.2 and none of the answers below to date work for me. There must be a way.– EliotAug 9, 2012 at 10:27
12 Answers
Another solution would be using the Package Explorer view.
-
3
-
-
Just saying "use package explorer" is really not an answer to the original question. The two serve similar but slightly different purposes. It is true that if you only work with java you probably don't notice much difference but if you work with multiple languages you see: stackoverflow.com/questions/1265070/… Jul 25, 2013 at 16:25
In the Project Explorer :
- Customize View
- Check
Libraries from external
Or in the Package Explorer :
- Uncheck the 'Show Referenced Libraries Node'
- Add a filter to hide "*.jar" files
-
8As PeterMa mentioned on the Question itself, this is not correct; it may work for the Package Explorer, but there is no such option in the Project Explorer. Jul 13, 2011 at 16:28
-
This also means that if you're trying to build a jar file, you no longer have a JAR-description entry on which to right click and select "Create JAR".– Ti StrgaDec 12, 2012 at 19:15
-
This is not correct as far as the original question since it is about the project explorer. See the answer by @Wl. Jul 25, 2013 at 16:19
In Eclipse3.5, select the filter "libraries from external" in "customize view".
-
8
-
1This is the correct answer for the project explorer view thank you! Jul 25, 2013 at 16:17
In Eclipse 3.7
- open view menu (arrow down icon in right section of title) of Project Explorer
- select Customize View menu item
- in Available Customization window on Filters tab check Library from external and click OK
In Eclipse3.5
- Go to Configure Build Path. Select the Library Tab
- Remove any library jar files you want to hide
- Use Add External Jar option to add the Jar file back
- select the filter "libraries from external" in "customize view".
Works for eclipse 3 and 4 in the project explorer and package explorer views.
Hey here is how it works:
- Drop down on the ceiling -> Customize View... -> Filters tick "Libraries from external"
- Right click on the project -> Properties -> Java Build Path -> Remove all jars -> Add EXTERNAL jars -> add all jars
There you go.
I believe that Eclipse 3.4.2 places jars under "Referenced Libraries" node which is collpasable. What version do you use?
Go the library Tab of Java Build Path, Add Variable (add a variable name and library folder location).
Once the variable is added, click on extend, you will see all the jars. Select all of them (or whatever is needed) and click ok. Exit the build path dialog box by clicking ok.
This will remove all the jars from your project view.
Project Explorer > [Down Arrow Icon] > Customize View > Choose the options which you want to exclude to see in the explorer
In Eclipse Luna:
- On the toolbar for the Project Explorer, click the Menu button 'view menu' (arrow) to open the drop-down menu of display options.
- Select Customize View...
- In the dialog box that opens, select the Filters tab and then select the checkboxes for the types of files that you want to hide.
For hiding *.jar select Libraries from external.
For more info check: Eclipse help
On Juno, see the "View menu" button on the left of the Project Explorer minimize button. Develop the menu and select the "Customize view" option. In the Filter tab, check the "Libraries from external" option. That's all.
For Eclipse STS,
A quick work around to stop looking at your large list of jar files is to switch to Navigator view instead. For my purposes navigator works the same as project explorer. I tried adding a custom filter "*.jar" in project view however custom filters is unavailable in STS. Also Customize View... -> Filters tick "Libraries from external" is only for 3rd party jars, it doesn't work for custom jars in your project.