Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse for Java, project missing required library
Eclipse for Java, project missing required library [message #715605] Sun, 14 August 2011 19:32 Go to next message
aspeich is currently offline aspeichFriend
Messages: 3
Registered: August 2011
Junior Member
Hi,

I have started a project on Eclipse for Java, Version: 3.5.2.

On the problems tab I am getting an error that my project is missing a library, a .jar file.

When I check the lib folder in the project tree pane on the left I can see the it is not there, I know where the .jar file is on my hard disk.

Is it a question of just manually adding the .jar file to the project? What menu would I use to do this? I have gone through the available menu items when right-clicking but can't find anything which looks like it would help.

Thanks


Re: Eclipse for Java, project missing required library [message #715736 is a reply to message #715605] Mon, 15 August 2011 10:55 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 14.08.2011 21:32, aspeich wrote:
> Hi,
> I have started a project on Eclipse for Java, Version: 3.5.2.
>
> On the problems tab I am getting an error that my project is missing a
> library, a .jar file.
>
> When I check the lib folder in the project tree pane on the left I can
> see the it is not there, I know where the .jar file is on my hard disk.
>
> Is it a question of just manually adding the .jar file to the project?
> What menu would I use to do this?
Select the Java project in the 'Package Explorer' and then context menu
> Build Path > Add External Archives....

Dani
> I have gone through the available menu items when right-clicking but
> can't find anything which looks like it would help.
>
> Thanks
>
>
>
Re: Eclipse for Java, project missing required library [message #715854 is a reply to message #715736] Mon, 15 August 2011 19:11 Go to previous messageGo to next message
aspeich is currently offline aspeichFriend
Messages: 3
Registered: August 2011
Junior Member
Thanks Dani.

I tried what you suggested and I got a message saying the jar file is already on the build path and will not be added.

I looked through the folders and can see it under the 'referenced libraries' folder, however I still have an error that there is a missing required library.

I tried deleting the jar file from referenced libraries in order to add it again in the correct location but the delete option is not active.

Any ideas?
Re: Eclipse for Java, project missing required library [message #715993 is a reply to message #715854] Tue, 16 August 2011 07:22 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 15.08.2011 21:11, aspeich wrote:
> Thanks Dani.
> I tried what you suggested and I got a message saying the jar file is
> already on the build path and will not be added.
> I looked through the folders and can see it under the 'referenced
> libraries' folder, however I still have an error that there is a
> missing required library.
>
> I tried deleting the jar file from referenced libraries in order to
> add it again in the correct location but the delete option is not active.
> Any ideas?
When you expand the library, do you see classes? Maybe you added source
instead of class files.

Dani
Re: Eclipse for Java, project missing required library [message #716570 is a reply to message #715854] Wed, 17 August 2011 17:39 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 8/15/11 3:11 PM, aspeich wrote:
> Thanks Dani.
> I tried what you suggested and I got a message saying the jar file is
> already on the build path and will not be added.
> I looked through the folders and can see it under the 'referenced
> libraries' folder, however I still have an error that there is a missing
> required library.
>
> I tried deleting the jar file from referenced libraries in order to add
> it again in the correct location but the delete option is not active.
> Any ideas?

It might be that Eclipse was told about the JAR, but the JAR doesn't
exist any more in the location it was told. Open the project Properties,
then select Java Build Path, and Libraries tab. Do you see any errors
listed at the top of the dialog? Is the mystery JAR listed? If so, try
removing it and then re-adding it.

Eric
Re: Eclipse for Java, project missing required library [message #717444 is a reply to message #716570] Sat, 20 August 2011 18:17 Go to previous message
aspeich is currently offline aspeichFriend
Messages: 3
Registered: August 2011
Junior Member
Thanks Eric, that did the trick!
Previous Topic:creating a java webapp
Next Topic:Startup Errors: "XML document structures"
Goto Forum:
  


Current Time: Fri Apr 26 10:34:02 GMT 2024

Powered by FUDForum. Page generated in 0.07904 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top