Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to get the user library and its jars defined in PreferencePage with code?
How to get the user library and its jars defined in PreferencePage with code? [message #533679] Sat, 15 May 2010 09:15 Go to next message
Eclipse UserFriend
I know JavaCore.getUserLibraryNames() can return the user library name defined in Preference Page Java->Build Path->User Library.
But how can I get the jars the user library cantains?

Thanks very much!
Re: How to get the user library and its jars defined in PreferencePage with code? [message #534454 is a reply to message #533679] Wed, 19 May 2010 05:24 Go to previous message
Eclipse UserFriend
Once you get the names, you can do the following for each library name

IPath path = new Path(JavaCore.USER_LIBRARY_CONTAINER_ID).append(librarynames [i]);
IClasspathContainer classpathContainer = JavaCore.getClasspathContainer(path, project);
classpathContainer.getClasspathEntries()

Previous Topic:How to map info from RefactoringDescriptor to corresponding IJavaElement?
Next Topic:Comment alignment
Goto Forum:
  


Current Time: Fri Mar 28 12:54:01 EDT 2025

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

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

Back to the top