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

1) I am getting this exception java.lang.ClassNotFoundException:

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;
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: 501
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:

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 Dec 08 06:21:14 GMT 2021

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

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

Back to the top