Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 155281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:07:40+00:00 2026-05-11T10:07:40+00:00

I am writing an application that uses Equinox as my OSGi framework. I am

  • 0

I am writing an application that uses Equinox as my OSGi framework. I am trying to discover all of the bundles that are known at the time that my bundle is registered. I attempted to use the following line to retrieve all of the available bundles. However,

EclipseStarter.getSystemBundleContext().getBundles();

gives me a warning of…

Discouraged access: The method getSystemBundleContext() from the type EclipseStarter is not accessible due to restriction on required library D:\java\eclipse\plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar

What is the proper usage to get a list of all of the available bundles within the framework?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:07:40+00:00Added an answer on May 11, 2026 at 10:07 am

    You could use your own bundle context as an entry point instead of the EclipseStarter – in your plugin activator:

    start(BundleContext context) {   context.getBundles();  // what you want } 

    Look at the Plugin cans AbstractUIPlugin classes if you don’t know about them. If you really need singleton access, your plugin is probably one – feel free to expose YourPlugin.getInstance().getBundleContext().

    (Disclaimer: I haven’t tried it – but it would be consistent with OSGi/Eclipse)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an application that uses renaming rules to rename a list of files
I'm currently writing an iPhone application that uses a UITabBarController with more than 5
I'm writing an application in PHP that uses a LOT of global variables that
I'm writing a simple OpenGL application that uses GLUT . I don't want to
I am writing an application that downloads large files in the background. All clients
I'm writing an application that uses UIImagePickerController. I'd like to give users choice of
I'm currently writing an application that uses Pygments to perform syntax highlighting. The problem
I am writing an application that uses 3rd party libraries to instantiate and make
I'm writing an application that uses Dijkstra algorithm to find minimal paths in the
I am writing an application that uses Synchronous NSURLConnection(s) and am finding that my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.