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

  • Home
  • SEARCH
  • 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 8333503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:03:17+00:00 2026-06-09T03:03:17+00:00

This should be really simple. HelpGUI is a really simple library: HelpGUI In a

  • 0

This should be really simple. HelpGUI is a really simple library: HelpGUI

In a test application that uses none of the OSGI framework, I can load up the demo that is included in this tiny library with no trouble. When I try to do it in my OSGI bundle I cannot get the InputStream to open. It must be because I am not including resources to my bundle correctly, I am not sure how though. I am able to construct a URL object and get the correct path to files. I have the /docs/help/ folder in the same level as the src folder in my bundle, shouldn’t I be able to just call:

MainFrame mainFrame = new MainFrame("/docs/help/", "plastic");

and have it work? Why is OSGI making this so difficult? Can someone try downloading the library and getting the demo to pop up the help window in an OSGI bundle?

  • 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. Editorial Team
    Editorial Team
    2026-06-09T03:03:18+00:00Added an answer on June 9, 2026 at 3:03 am

    I’ve tried it, and did not run into any complications, I’ve made a git repo with both an OSGi version and a non-OSGi version, and both run fine:

    https://github.com/flyaruu/demo-helpgui

    They both have an eclipse launch file, and you can run them from the run menu.

    The only tricky thing I needed to do was having to add this switch: –launcher.secondThread but that is an Eclipse SWT/Swing issue on MacOS only, I don’t know what platform you use.

    Also, maybe tricky, Eclipse doesn’t force you to add dependencies to javax.* packages, which you really should do, otherwise standalone OSGi frameworks won’t load the bundle, even though Eclipse itself does.

    You can export the bundle using PDE export (Export -> Bundles and Fragments), I’ve also included it (helpgui-osgi_1.0.0.201207310536.jar) in the git repo. The included bundle you can just drop into the ‘bundle’ folder of Felix, for example.

    Can’t make it any easier 😉

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

Sidebar

Related Questions

This should be really simple but I can't get it to work, how do
I think that my issue should be really simple, yet I can not find
This should be a really simple problem, but I can't quite figure out what
This should be really simple. If I have a String like this: ../Test?/sample*.txt then
This should be really simple in SharePoint, but I can't figure out how to
This should be really simple, but I can't seem to figure out what to
Really simple question: Am I missing something? Seems like this should be all that
This should be really simple, I have found that the first argument is the
This should be really simple but for some reason I can't seem to get
This should be really simple, but I can't figure it out. So: how do

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.