Remove project .jars from project explorer view in Eclipse

前端 未结 12 1233
执念已碎
执念已碎 2021-02-01 12:21

The list of jars just takes up too much space. Can I collapse it or hide it?

相关标签:
12条回答
  • 2021-02-01 12:34

    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.

    0 讨论(0)
  • 2021-02-01 12:35

    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.

    0 讨论(0)
  • 2021-02-01 12:36

    Project Explorer > [Down Arrow Icon] > Customize View > Choose the options which you want to exclude to see in the explorer

    0 讨论(0)
  • 2021-02-01 12:37

    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
    0 讨论(0)
  • 2021-02-01 12:38

    I believe that Eclipse 3.4.2 places jars under "Referenced Libraries" node which is collpasable. What version do you use?

    0 讨论(0)
  • 2021-02-01 12:39

    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
    0 讨论(0)
提交回复
热议问题