Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » References to non-existing library(Removing reference)
References to non-existing library [message #511665] Tue, 02 February 2010 08:40 Go to next message
Eclipse UserFriend
Several days ago, I put some cryptography jars in the lib\ext folder of the JRE, thinking that was the appropriate place to put them so that they'd be accessible to all my Eclipse projects. Then, I was told that was not the best place to put them so I put them elsewhere and deleted them from the lib\ext folder.

Now, all but one of my projects complain that "The container 'JRE System Library [jre6]' references non-existing library C:\Program Files\Java\jre6\lib\ext\bcmail-jdk16-145.jar'" and "The project cannot be built until the build path errors are resolved."

I'm not sure why I'm getting this. First, I have deleted that jar from the lib\ext folder and the projects that are being flagged with errors don't use the jar anyway. How do I resolve this error?

I've tried running a Clean for the first failing project but it did nothing. I've also tried running a Clean of all projects but it also failed to resolve the problem. I suppose I could resolve the problem by putting the jars back but there has to be a better way....

--
Rhino
Re: References to non-existing library [message #511683 is a reply to message #511665] Tue, 02 February 2010 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

Try recreating your jre6 installed runtime within Eclipse. When you add
an installed runtime jre Eclipse will at that time pick up all of the
jars that it thinks are needed and then keeps using that list. So just
deleting it from the jre's path doesn't remove it from the path that
Eclipse sets up.


--
Thanks,
Rich Kulp
Re: References to non-existing library [message #511744 is a reply to message #511683] Tue, 02 February 2010 12:14 Go to previous messageGo to next message
Eclipse UserFriend
Can you elaborate on the technique I need to use to do that? I'm not clear on what you mean.
Re: References to non-existing library [message #511768 is a reply to message #511744] Tue, 02 February 2010 13:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Windows->Preferences->Java->Installed JRE.

Select your jre and hit Edit button. Then try Restore Default button.
See if that removes your jars from the list of jars on that dialog. Then
hit OK.

Reinhardt Christiansen wrote:
> Can you elaborate on the technique I need to use to do that? I'm not
> clear on what you mean.

--
Thanks,
Rich Kulp
Re: References to non-existing library [message #511780 is a reply to message #511768] Tue, 02 February 2010 14:25 Go to previous message
Eclipse UserFriend
That seems to solved the problem!

Thanks, Rich.

--
Rhino
Previous Topic:Error - Help
Next Topic:Eclipse is not starting properly....
Goto Forum:
  


Current Time: Sat Mar 15 01:38:21 EDT 2025

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

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

Back to the top