This discussion is archived
5 Replies Latest reply: Dec 8, 2009 5:40 AM by 843810 RSS

fatal: resource for java help is missing

843810 Newbie
Currently Being Moderated
I'm getting this exception when trying to view a helpset:

Exception in thread "AWT-EventQueue-0" java.lang.Error: Fatal: Resource for javahelp is missing
     at javax.help.HelpUtilities.getBundle(HelpUtilities.java:368)
     at javax.help.HelpUtilities.getString(HelpUtilities.java:419)
     at javax.help.plaf.basic.BasicContentViewerUI.installUI(BasicContentViewerUI.java:160)
     at javax.swing.JComponent.setUI(JComponent.java:673)
     at javax.help.JHelpContentViewer.setUI(JHelpContentViewer.java:120)
     at javax.help.JHelpContentViewer.updateUI(JHelpContentViewer.java:140)
     at javax.help.JHelpContentViewer.<init>(JHelpContentViewer.java:87)
     at javax.help.JHelp.<init>(JHelp.java:122)
     at javax.help.JHelp.<init>(JHelp.java:76)
     at sunw.demo.jhdemo.JHLauncher$DisplayAction.actionPerformed(JHLauncher.java:956)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
     at java.awt.Component.processMouseEvent(Component.java:6301)
     at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
     at java.awt.Component.processEvent(Component.java:6066)
     at java.awt.Container.processEvent(Container.java:2085)
     at java.awt.Component.dispatchEventImpl(Component.java:4667)
     at java.awt.Container.dispatchEventImpl(Container.java:2143)
     at java.awt.Component.dispatchEvent(Component.java:4497)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4600)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4264)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4194)
     at java.awt.Container.dispatchEventImpl(Container.java:2129)
     at java.awt.Window.dispatchEventImpl(Window.java:2475)
     at java.awt.Component.dispatchEvent(Component.java:4497)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
     at java.awt.Dialog$1.run(Dialog.java:1051)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

This error occurs when I unzip and hsviewer the idehelp.jar released with jh2.
I've read through the javahelp guide and searched everywhere online and I've come up empty handed.
This is happening with my help set as well and initially I thought it was something I had forgot to include in my content, but as I was looking at different examples and testing the demos I run into the same problem.
Any help would be greatly appreciated.

Thank you
  • 1. Re: fatal: resource for java help is missing
    843810 Newbie
    Currently Being Moderated
    Turns out putting the javahelp jars on you classpath isn't enough.
    They have to be in your java_home\lib\ext directory to work correctly.
    If someone can tell me why this is the case please let me know.

    Thank you
  • 2. Re: fatal: resource for java help is missing
    793415 Pro
    Currently Being Moderated
    thorfinn32 wrote:
    Turns out putting the javahelp jars on you classpath isn't enough.
    They have to be in your java_home\lib\ext directory to work correctly.
    If someone can tell me why this is the case please let me know.
    It is not the case. Try removing those JavaHelp jars from home/lib/ext and try this [JavaHelp launch file|http://pscode.org/jh/bin/helpsetter-apidocs.jnlp] *(<- link).* It is sandboxed, and does not require any 'pre installation' of JavaHelp. That e.g. is from my [demos of using JavaHelp with JWS|http://pscode.org/jh/] *(<- link).*
  • 3. Re: fatal: resource for java help is missing
    843810 Newbie
    Currently Being Moderated
    My understanding was also that JavaHelp was standboxed and required no installation.
    I removed jhall.jar from home/lib/ext and your demo fails to load.
    I put jhall.jar back in home/lib/ext and your demo works beautifully.
    I don't know why it is being so particular.
  • 4. Re: fatal: resource for java help is missing
    793415 Pro
    Currently Being Moderated
    thorfinn32 wrote:
    My understanding was also that JavaHelp was standboxed..
    It depends. See [Security Constraints|http://pscode.org/jh/security.html] for details.
    ..and required no installation.
    The JNLP launch files do have the effect of installing parts of JavaHelp, but not using the usual installer.
    I removed jhall.jar from home/lib/ext and your demo fails to load.
    What error?
    I put jhall.jar back in home/lib/ext and your demo works beautifully.
    I don't know why it is being so particular.
    I find your report hard to believe.

    1) I prepared those examples when I was using Windows. I have since changed to Linux and had not had much to do with JavaHelp - certainly never installed it. The demo works fine for me.
    2) From the [JavaHelp System/JWS Notes|http://pscode.org/jh/note.html#dependencies] "Note that jhall.jar only seems to be used by the command line based tools. Since JWS is unsuited to running CLI based tools, there is no reason to supply it as a component for JWS launch. "

    Can somebody else who does not have JavaHelp installed, try the sandboxed launch file at [http://pscode.org/jh/bin/helpsetter-apidocs.jnlp]?
  • 5. Re: fatal: resource for java help is missing
    843810 Newbie
    Currently Being Moderated
    This is the error I get when I remove jhall.jar from my extensions.
    javaws helpsetter-apidocs.jnlp
    findHelpSet url=jar:http://pscode.org/jh/hs/apidoc.jar!/api.hs
    Exception in thread "AWT-EventQueue-0" java.lang.Error: Fatal: Resource for javahelp is missing
         at javax.help.HelpUtilities.getBundle(HelpUtilities.java:368)
         at javax.help.HelpUtilities.getString(HelpUtilities.java:419)
         at javax.help.plaf.basic.BasicContentViewerUI.installUI(BasicContentViewerUI.java:160)
         at javax.swing.JComponent.setUI(JComponent.java:673)
         at javax.help.JHelpContentViewer.setUI(JHelpContentViewer.java:120)
         at javax.help.JHelpContentViewer.updateUI(JHelpContentViewer.java:140)
         at javax.help.JHelpContentViewer.<init>(JHelpContentViewer.java:87)
         at javax.help.JHelp.<init>(JHelp.java:122)
         at javax.help.WindowPresentation.createJHelp(WindowPresentation.java:853)
         at javax.help.WindowPresentation.createHelpWindow(WindowPresentation.java:889)
         at javax.help.DefaultHelpBroker.initPresentation(DefaultHelpBroker.java:178)
         at org.physci.javahelp.helpsetter.HelpSetter.initAndDisplay(HelpSetter.java:103)
         at org.physci.javahelp.helpsetter.HelpSetter$2.run(HelpSetter.java:191)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    I am currently testing on mac osx 10.5, but I've experienced the same problem with windows xp.
    I don't know what else to do. The only way I get it to work is putting jhall.jar in the ext directory.
    Thank you for helping me look into this problem.

    Edited by: thorfinn32 on Dec 8, 2009 5:39 AM