Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Install Bundles
Install Bundles [message #581702] Fri, 26 September 2008 10:05
Michael Heiss is currently offline Michael HeissFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,

I am trying to install a plugin programmatically using the following code:

BundleContext context =
ResourcesPlugin.getPlugin().getBundle().getBundleContext();
String path = "reference:file:///"+workspace.getLocation()+"/"+name+"/";
Bundle bundle = context.installBundle(path);

Where name is the name of the plugin in my workspace.

This works fine, the plugin is beeing installed and i see it in the
Plugin-Registry. When i try to call bundle.start() then a ClassNotFound
exception is thrown. The classloader cannot find the activator class of
the new installed bundle.

How can i solve this?

BestRegards
Michael
Previous Topic:cvs and Target Platform
Next Topic:Where to include cheatsheets?
Goto Forum:
  


Current Time: Thu Apr 25 08:20:09 GMT 2024

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

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

Back to the top