I am using Java and HelpGUI in my OSGI bundle and the links that use do not work. When I use HelpGUI in a non-OSGI Java project, they work just fine on the same html files. Is there some security setting or something special with paths that I need to consider? Let me know, I am horribly stuck.
Share
You should have a look at the source code of HelpGui, I can see why it doesn’t quite work in OSGi (it relies on a specific URL format resources in jar files usually have).
If you look at the net.sourceforge.helpgui.gui.HelpView page, around line 222:
That is not going to work in OSGi, as the URL format of entries is really different. For example in Equinox a bundle URL looks like:
(Other implementations might be different, point is, you can’t rely on it)
In ‘normal java’ the URL looks like:
It is fixable, it shouldn’t be too hard, but you’ll have to either contact the HelpGui author or get your hands dirty yourself.
regards, Frank