Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Plug-in Development help(attach external jars to a project)
Plug-in Development help [message #517390] Sat, 27 February 2010 13:42 Go to next message
crossedangemon is currently offline crossedangemonFriend
Messages: 9
Registered: February 2010
Junior Member
When creating a project programmatically, how can I attach external jars as libraries?
I've tried the setClasspathVariable but it didn't work.

Any help would be appreciated.
Re: Plug-in Development help [message #526176 is a reply to message #517390] Fri, 09 April 2010 06:56 Go to previous message
Rahul  is currently offline Rahul Friend
Messages: 5
Registered: March 2010
Junior Member
hi,
You can use these functions:

public static IPackageFragmentRoot addLibrary(IJavaProject jproject, IPath path) throws JavaModelException {
return addLibrary(jproject, path, null, null);
}

and call that function as addLibrary(jproject,path);
Previous Topic:Exception while calling extension point
Next Topic:Plug-in Development help
Goto Forum:
  


Current Time: Fri Apr 26 16:20:16 GMT 2024

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

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

Back to the top