Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse folder Referenced Libraries disappears

Tags:

eclipse

In Java projects in Eclipse version 3.4.1 sometimes the folder "Referenced Libraries" disappears from the "Project Explorer" view. All third party jars are shown directly in the root of the project folder. The project compiles and runs fine. It seems to be a GUI problem.

How can I get this folder back?

like image 707
Benno Richters Avatar asked Sep 25 '08 16:09

Benno Richters


People also ask

How do I show library in Eclipse?

To get started, open the "Preferences" window in Eclipse. Navigate to "Java » Build Path » User Libraries" on the left-hand side and click the "New" button. Enter the library name and click the "OK" button (leave the "System library" checkbox alone).

Where are Eclipse libraries?

The User Library definitions are stored in the workspace; specifically, in . metadata/. plugins/org. eclipse.

Where is Java library lib folder?

After you create a Java project, create a new folder by going to File > New > Folder. Call it “lib”. Then import the JAR file into the lib folder by going to File > Import > General > File. Alternatively, you could just copy the JAR file manually into that folder by navigating to it in your workspace.


2 Answers

First, bring up the "Package Explorer" view (instead of the "Project Explorer" view).

Then, if the referenced .jar files still are visible in the root of the project, click on the little "down arrow" icon in the top-right corner of the Package Explorer view. In the context menu that appears, one of the items on the menu is "Show 'Referenced Libraries' Node." Click on that menu item.

like image 79
Jon Schneider Avatar answered Sep 18 '22 20:09

Jon Schneider


I've been struggling with this thing for a while in Eclipse Juno because it's a little bit different.

  • click the little down arrow as before
  • click Customize view
  • check Libraries from external
like image 44
user219882 Avatar answered Sep 17 '22 20:09

user219882