Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Problems after moving to org.eclipse.osgi_3.10.1.v20140909-1633.jar(Problems after moving to org.eclipse.osgi_3.10.1.v20140909-1633.jar)
Problems after moving to org.eclipse.osgi_3.10.1.v20140909-1633.jar [message #1691444] Tue, 07 April 2015 10:10 Go to next message
Bharathi Manian is currently offline Bharathi ManianFriend
Messages: 2
Registered: April 2015
Junior Member
I recently moved from org.eclipse.osgi_3.4.0.v20080605-1900.jar to
org.eclipse.osgi_3.10.1.v20140909-1633.jar.

1) I am getting this exception java.lang.ClassNotFoundException:
org.eclipse.osgi.framework.internal.core.BundleHost

We are using it this way :
if (bundle instanceof BundleHost && ((BundleHost) bundle).getBundleData() instanceof BaseData) {
file = ((BaseData) ((BundleHost) bundle).getBundleData()).getBundleFile().getBaseFile();
}

Can someone tell me where this class has moved or what is its equivalent?

2)Similarly we are using the FrameworkConsole and OSGi classes from this package org.eclipse.osgi.framework.internal.core.

private FrameworkConsole console;
private OSGi osgi;

public StarterFrameworkConsole(org.eclipse.osgi.framework.internal.core.OSGi osgi, java.lang.String[] strings) {
console = new FrameworkConsole(osgi, strings);
this.osgi = osgi;
StarterFrameworkConsoleInstance.setInstance(this);
}
Re: Problems after moving to org.eclipse.osgi_3.10.1.v20140909-1633.jar [message #1691461 is a reply to message #1691444] Tue, 07 April 2015 12:35 Go to previous message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 486
Registered: July 2009
Senior Member
To get a bundle's file you can either use the org.eclipse.core.runtime.FileLocator.getBundleFile(Bundle) method or you can have a look at the code that does the same:

http://git.eclipse.org/c/equinox/rt.equinox.bundles.git/tree/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/FileLocator.java#n243

The console has been complete removed from the framework and is not based on the Felix Gogo shell. I'm unsure what you are doing with the FrameworkConsole. You can find the Equinox console (based on gogo) in org.eclipse.equinox.console
Previous Topic: Convert any Equinox project to Apache Felix
Next Topic:Default plugin loading strategy
Goto Forum:
  


Current Time: Wed Sep 19 00:52:47 GMT 2018

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

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

Back to the top