Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » user libraries in eclipse 3.5.1(how a user library is grabbing extra jars?)
user libraries in eclipse 3.5.1 [message #516688] Wed, 24 February 2010 14:02 Go to next message
Eclipse UserFriend
Hi experts,

I have created a User Library which contains just one external jar from /a/b/c/x.jar. When I add it to my Java project, and open up the library tree, I see that my custom user library suddenly gets more jar than I originally have.

it looks like it grabbed all the jars under /a/b/c/ directory.

I exported the user library to see what's the exported xml. The xml contains only 1 entry.

Can someone enlighten me on this subject? What is the mechanism at work here that eclipse is inferring more jars in my user library?

thanks,
Tom
Re: user libraries in eclipse 3.5.1 [message #516866 is a reply to message #516688] Thu, 25 February 2010 06:48 Go to previous messageGo to next message
Eclipse UserFriend
tomhsu@gmail.com wrote:
> Hi experts,
>
> I have created a User Library which contains just one external jar
> from /a/b/c/x.jar. When I add it to my Java project, and open up the
> library tree, I see that my custom user library suddenly gets more jar
> than I originally have.
>
> it looks like it grabbed all the jars under /a/b/c/ directory.
>
> I exported the user library to see what's the exported xml. The xml
> contains only 1 entry.
>
> Can someone enlighten me on this subject? What is the mechanism at
> work here that eclipse is inferring more jars in my user library?
I suspect that your JAR has a manifest that requires other JARs via
Class-Path attribute.

Dani
>
> thanks,
> Tom
Re: user libraries in eclipse 3.5.1 [message #517011 is a reply to message #516866] Thu, 25 February 2010 12:39 Go to previous message
Eclipse UserFriend
Thanks Dani,

I extracted the MANIFEST.MF and find that Class-Path is defined and contain the list of additional jars I see included in my user library.

This is news to me since I have not seen any of jars in our environment uses Class-Path in Manifest file.

Regards,
Tom
Previous Topic:Re: What happened to the Projects Tab ?
Next Topic:'Call Hierarchy' view recomputes history everytime.
Goto Forum:
  


Current Time: Fri Mar 28 12:35:28 EDT 2025

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

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

Back to the top