JavaHelp problems

Hi
I am using JH2.0 with JDK 1.4.1. JavaHelp mostly works, but I am having a few problems that I cannot find answers for in the forum or documentation.
1. On first use of context-sensitive help, the help viewer opens at the default page, not the requested page. This has been noted by others on this forum, but no solution given.
2. If I select the "help on item" cursor, and click on a menu, I get the correct help; if I click on a menu and press F1 I do not; neither do I get the F1 help for any menuitem.
3. I cannot get findHelpSet to work - ever.
4. If I pass my helpset via a URL thus (where path is the correct path to the help directory), everything is OK:
            java.net.URL url = new java.net.URL("file://" + path + "\\helpset.hs");
            helpSet = new HelpSet(null, url);However, if I try to load from a jar in the same directory, I get an exception:
            java.net.URL url = new java.net.URL("jar:file://" + path + "\\Help.jar!/helpset.hs");
            helpSet = new HelpSet(null, url);
javax.help.HelpSetException: Could not parse
Got an IOException (The network path was not found)
Parsing failed for null
        at javax.help.HelpSet.<init>(HelpSet.java:145)
(I also have some very curious behaviour when a native function is called - JavaHelp stops responding! I will report more on this when I have done further tests)
Does anyone have any solutions, explanations, or know if these are known bugs?
Thanks
John

However, if I try to load from a jar in the same
directory, I get an exception:
java.net.URL url = new
L url = new java.net.URL("jar:file://" + path +
"\\Help.jar!/helpset.hs");
helpSet = new HelpSet(null, url);
javax.help.HelpSetException: Could not parse
Got an IOException (The network path was not found)
Parsing failed for null
at javax.help.HelpSet.<init>(HelpSet.java:145)Is your path relative? If that is the case, the jar: protocol cannot be used. See ID 4149782 in the bug database.
/M

Similar Messages

  • JavaHelp problem with JBuilderX

    I write an example using JavaHelp.It runs well in the Win Console(CMD).When I run it in the JBuilderX,some exceptions appear:
    javax.help.HelpSetException: Could not parse
    Got an IOException (null)
    Parsing failed for null
    I do config the jh.jar in the project required libraries.I've searched in google,someone said JBuilder integrated JavaHelp1.3,maybe the version confilced.But I can't find such a jar in the JBuilder.What's the problem after all?How to resolve it?
    Thanks.

    Hi,
    I think, this problem is due to your .hs file. You might have not mentioned in the library of your JBuilder where your .hs file is available. So, ensure that you give the correct path of your .hs file in the configuration settings.
    Sunil.

  • Javahelp problem!!!

    Hello! I have a big problem while trying to load the help in the application! I use javahelp 2.0 I imported the javax.help and i am trying to load the help. I run the Help Set file with hsviewer.jar from javahelp and load the help fine. I want to load it from a button called help:
    HelpSet hs;
    HelpBroker hb;
    private void help_actionPerformed(ActionEvent e)
              String helpHS = "Help/BookStore.hs"; // path to the helpset file
              ClassLoader cl = Login.class.getClassLoader();
              try
                   URL hsURL = HelpSet.findHelpSet(cl, helpHS);
                   hs = new HelpSet(null,hsURL);
              catch (Exception ex)
                   ex.printStackTrace();
                   return;
              hb = hs.createHelpBroker();
              new CSH.DisplayHelpFromSource(hb);
         }when i run i throws an exception :
    javax.help.HelpSetException: Could not parse
    Got an IOException (null)
    Parsing failed for null
    Have you any ideea whar its wrong???

    I found the solution!!! :)
    private void help_actionPerformed(ActionEvent e)
              String helpHS = "../bin/main/Help/BookStore.hs"; // my new path
              ClassLoader cL = Login.class.getClassLoader();
              try
                   URL hsURL = HelpSet.findHelpSet(cL, helpHS);
                   hs = new HelpSet(null,hsURL);
              catch (Exception ex)
                   ex.printStackTrace();
                   return;
              hb = hs.createHelpBroker();
              new CSH.DisplayHelpFromSource(hb);
              hb.setDisplayed(true);
         }It trows that exception because it didn`t find the helpSet file. I moved the Help folder source to the bin/main/Help, where main is the package name and bin are the .class files.
    Cheers!

  • JavaHelp - problems installing

    Hi,
    Just a quick question. I've downloaded JavaHelp and extracted the zip file. I assume that to install I need to run the src.jar file but it says that it is invalid or corrupt. Is this a Sun issue as my friend has had the same problem.
    Regards,
    Chris

    No, all you need is the jh.jar file in the lib/ext/ directory of your JRE. Read
    the documentation files (they come with that .zip file) and see if you need
    a more limited (or extended) version of the .jar file (chapter 5: "programming
    with the JavaHelp system")
    kind regards,
    Jos

  • JavaHelp problem... IdeHelp not found

    I'm trying to run the demo program that came with JavaHelp 2, in JBuilder 10.
    after setting the project property and all, the demo starts and the error message "Help Set IdeHelp not found" appears. I tried to place th IdeHelp file at the project's folder but that did not help. I guess that the problem is with the classpath, but I can't get it right.
    share your thoughts, thanks
    Assaf

    can u post your code here; or at least the code that creates the helpset object and gets the helpset and the help broker.
    thanks

  • JavaHelp: problem with HTML size

    Hi guys,
    I converted a MS Word document to HTML and I'd like to display it using JavaHelp. The HTML file size is about 800k. It does work, but it takes a few minutes to be displayed!!!
    I tried with HTML files with size of about 100k and it works better (it takes a few seconds).
    Where is the problem? Is the HTML size? Or is MS Word that doesn't work so well?
    Thanks a lot for your answers!
    Paul.

    MS Word produces fat ugly HTML.

  • JavaHelp - Problems with HelpBroker

    Hi,
    my HelpBroker (JavaHelp for an application) doesn't work in correct way, HelpSet is found but not shown (without an error-message). Has anybody an example-code of a working HelpBroker for me?
    Thanks
    Spunk

    Hi,
    did you try method setDisplayed() as in
          HelpSet hs = new HelpSet(null, myHelpSetUrl);
          HelpBroker hb = hs.createHelpBroker();
          hb.setDisplayed(true);Ulrich

  • Please help: can bullets look normal in JavaHelp?

    When I generate JavaHelp (using RoboHelp) and preview, the bullets have prongs sticking out of them, instead of being smooth. Has anyone else encountered this? Is it a RoboHelp problem or a JavaHelp problem? Please help! I have to create compressed JavaHelp, and it's horribly ugly right now.
    Thanks!

    I know of no way to make a 4:3 hi-def movie. Unless you just want to crop off the sides -- but then you'll just have a widescreen video with black bars on the sides!

  • Problems loading images in JavaHelp

    Using Helpsetmaker to drop the helpset I have had problems with loading images.
    Helpsetmaker keeps any imported images in a pics/<folder>/<folder> heirachy, where the subfolder heirachy is based upon the 'root directory' used to import images.
    The html docs produced are used OK, but the images are not loaded correctly.
    HTML is fine, so the helpset files in general produced by the utility are OK.
    If I move the images to the root of the helpset i.e. the same
    location as the html, & edit the html <img> tags to reflect the new location they are loaded
    correctly so no problems with image files as such.
    AFAIK JavaHelp does not impose restrictions on locating files in subfolders, am I missing something?

    Having had a spare moment to look at the problem again this was a case of seeing what you want to see.
    HelpSetMaker was actually dropping tags src="pics\folder\folder/image.png"

  • Problems with RoboHelp 8 HTM and JavaHelp

    Hello,
    I was working with RoboHelp 7 and created help. Now I import
    my files in RoboHelp 8 and have some problems:
    1. In design view files look just fine, but when I generate
    javaHelp i have some unwanted characters. At the begining of all
    pages and after all images in page I have ">" symbol. What
    should I do to lose this unwanted characters.
    2. When I generate JavaHelp in Output view I get exception :
    "Building Full-Text-Search data...
    java.io.IOException: Can't store Document
    at
    com.sun.java.help.search.DefaultIndexerKit.storeToken(DefaultIndexerKit.java:164)
    at
    com.sun.java.help.search.DefaultIndexerKit.parseIntoTokens(DefaultIndexerKit.java:117)
    at
    com.sun.java.help.search.HTMLIndexerKit$HTMLParserCallback.addContent(HTMLIndexerKit.java :1092)
    at
    com.sun.java.help.search.HTMLIndexerKit$HTMLParserCallback.addContent(HTMLIndexerKit.java :1064)
    at
    com.sun.java.help.search.HTMLIndexerKit$HTMLParserCallback.handleText(HTMLIndexerKit.java :411)
    at
    javax.swing.text.html.parser.DocumentParser.handleText(Unknown
    Source)
    at javax.swing.text.html.parser.Parser.handleText(Unknown
    Source)
    at javax.swing.text.html.parser.Parser.startTag(Unknown
    Source)
    at javax.swing.text.html.parser.Parser.parseTag(Unknown
    Source)
    at javax.swing.text.html.parser.Parser.parseContent(Unknown
    Source)
    at javax.swing.text.html.parser.Parser.parse(Unknown Source)
    at javax.swing.text.html.parser.DocumentParser.parse(Unknown
    Source)
    at
    javax.swing.text.html.parser.ParserDelegator.parse(Unknown Source)
    at
    com.sun.java.help.search.HTMLIndexerKit.parse(HTMLIndexerKit.java:116)
    at
    com.sun.java.help.search.Indexer.parseFile(Indexer.java:259)
    at
    com.sun.java.help.search.Indexer.parseFile(Indexer.java:271)
    at
    com.sun.java.help.search.Indexer.compile(Indexer.java:219)
    at com.sun.java.help.search.Indexer.main(Indexer.java:87)"
    When I import my help in application search doesn't work. How
    to generate help without any exceptions?

    Hi!
    I'm still having the same problem I was hoping to find some solution, because it is really annoying.
    I've noticed that this exception occurs after some minor modification in topic text (e.g. correcting a grammar mistake). Also, after generating JAVA help and viewing the results, the topics which have "?xml version="1.0" encoding="utf-8" ? at the beginning, won’t be displayed correctly and won’t be found in the search results.
    So, I was not able to find the problem, although my colleague can modify the same help projects, and won’t get the same exception. So, my PC was changed, Robo Help installed freshly, but this problem still remains .
    Well, any clues?

  • Formatting problem - RH7 JavaHelp

    Hej,
    to create a jar-file (JavaHelp) is not that problem ...
    My problem are the font-size and bullet points - after I've
    created a jar-file they have been changed.
    Why and is there any workaround to fix this problem???
    Many thanks in advance for some help :O)

    Hi cc-cebi and welcome to the RH community.
    JavaHelp is notoriously unreliable. I had all sorts of
    formatting issues before I kicked it into the long grass. What you
    can do is ensure you have all the latest version of the J2SE
    Software Development Kit (SDK). You may also want to read
    this
    link on Peter Grainge's site.

  • Is HTML size a problem using JavaHelp?

    Hi guys,
    I converted a MS Word document to HTML and I'd like to display it using JavaHelp. The HTML file size is about 800k. It does work, but it takes a few minutes to be displayed!!!
    I tried with HTML files with size of about 100k and it works better (it takes a few seconds).
    Where is the problem? Is the HTML size? Or is MS Word that doesn't work so well?
    Thanks a lot for yoour answers!
    Paul.

    I agree, using Ms Word to produce HTML it's not the best way. But I have a word file (more than 100 pages) and I can't spend much time to create the HTML by myself.
    However I'll try to split my file and see if it could work better.
    In any case, may the html size be a problem? Or a well formatted html file with size of 800k should be displayed quickly?
    Thank you very much, regards
    Paul.

  • JavaHelp search problem

    Hi guys.
    I am new at JavaHelp 2.0 and i am troubling with JavaHelp search engine.
    I use javax.help.SearchView as viewer and com.sun.java.help.search.DefaultSearchEngine as search engine.
    I indexed Turkish  html files for my system.
    My problem is : When I query a word containig capital I (for example "BITS" ) , it doesn't bring me the correct results. Actually it doesn't bring me any thing
    Whereas , the other capital letters does not make problem and correct results come out.
    In addition, when I query the words containing capital "I" with "jhsearch" appliaction , all the words containig capital "I" is queried correctly.
    I dont understand the issue .
    Please help me.

    I don�t know, whether you solved the problem or not.
    But have you tried to create the search-database with the jhindexer-tool?

  • JavaHelp and JavaSearch problem

    Hello,
    I am using the JavaHelp api and it works fine for everything even when I use the search part, if I launch JavaHelp and JavaSearch in command line with jsearch. The problem is when I use it from my swing application. I get this error :
    Exception while creating engine named com.sun.java.help.search.DefaultSearchEngine for view: javax.help.SearchView@186f247
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:506)
         at javax.help.search.MergingSearchEngine.makeEngine(MergingSearchEngine.java:169)
         at javax.help.search.MergingSearchEngine.<init>(MergingSearchEngine.java:63)
         at javax.help.JHelpSearchNavigator.getSearchEngine(JHelpSearchNavigator.java:102)
         at javax.help.plaf.basic.BasicSearchNavigatorUI$SearchActionListener.actionPerformed(BasicSearchNavigatorUI.java:109)
         at javax.swing.JTextField.fireActionPerformed(JTextField.java:487)
         at javax.swing.JTextField.postActionEvent(JTextField.java:675)
         at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:790)
         at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1633)
         at javax.swing.JComponent.processKeyBinding(JComponent.java:2864)
         at javax.swing.JComponent.processKeyBindings(JComponent.java:2899)
         at javax.swing.JComponent.processKeyEvent(JComponent.java:2827)
         at java.awt.Component.processEvent(Component.java:5734)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:4365)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:4195)
         at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1828)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:693)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:952)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:824)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:657)
         at java.awt.Component.dispatchEventImpl(Component.java:4237)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Window.dispatchEventImpl(Window.java:2300)
         at java.awt.Component.dispatchEvent(Component.java:4195)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Caused by: java.security.InvalidParameterException
         at com.sun.java.help.search.DefaultSearchEngine.<init>(DefaultSearchEngine.java:75)
         ... 36 more
    I already read the similar messages from this forum but those do not fiw my problem.
    Here is the code I use to open my help in my application :
    try {
                   String dirHelp = MyAppProperties.getInstance().getProperty(
                             PropertiesConstants.HELP_FILES_PATH);
                   URL url = new URL((new File(".")).toURL(),dirHelp);
                   System.out.println("URL "+url);
                  hs = new HelpSet(null, url);
                  hb = hs.createHelpBroker();
              } catch (Exception ee) {
                  System.out.println ("HelpSet "+
                      "Qrtpcr.hs" + " not found");
              }My helpset file is found and I can get my help files from my application but I cannot perform a search. The URL is a network URL, the full path \\networkPlace\MyHelpset.hs
    Thanks in advance for your help

    I haven't been able to get image bullets to work in JavaHelp with css .
    " I believe it's because the "url" attribute is not part of the HTML 3.2
    specification. I hope I'm wrong, I'd like to be able to use bullets"

  • Problem in viewing a converted JavaHelp (jar) file (created using RH2002 to RoboHelp X5)

    Hi,
    I have a javahelp project (compressed javahelp) created using
    RoboHelp 2002. The output files are jar files.
    The source files are .mpj. When I view the existing jar files
    without converting the project to .xpj I am able to view the jar
    files.
    However, this project needs to be upgraded to RHx5. During
    conversion(.mpj to .xpj) everything seems to be working fine and
    the javahelp files are generated. But when I try to view the jar
    files nothing is diplayed.
    I get the following error. Please see below.
    Has anybody come across anything similar? Is there anything I
    need to take care of before I upgrade to .xpj? I cannot locate the
    glo.xml file in RH.
    Best regards,
    Urmi
    Parsing failed for null
    Exception caught while parsing jar:file:C:/Documents and
    Settings/urmiroy/Desktop/ep2_cd1helps/Developer_edit/JavaHelp/FLEXIEDGEBTS_dev_edit.jar!/ FLEXIEDGEBTS_dev_edit_glo.xmljava.io.FileNotFoundException:
    JAR entry FLEXIEDGEBTS_dev_edit_glo.xml not found in C:\Documents
    and
    Settings\urmiroy\Desktop\ep2_cd1helps\Developer_edit\JavaHelp\FLEXIEDGEBTS_dev_edit.jar
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at
    javax.help.MergeHelpUtilities.mergeNodeChildren(MergeHelpUtilities.ja
    va:89)
    at
    javax.help.plaf.basic.BasicGlossaryNavigatorUI.loadData(BasicGlossary
    NavigatorUI.java:217)
    at
    javax.help.plaf.basic.BasicGlossaryNavigatorUI.reloadData(BasicGlossa
    ryNavigatorUI.java:198)
    at
    javax.help.plaf.basic.BasicGlossaryNavigatorUI.installUI(BasicGlossar
    yNavigatorUI.java:146)
    at javax.swing.JComponent.setUI(Unknown Source)
    at javax.help.JHelpNavigator.setUI(JHelpNavigator.java:257)
    at
    javax.help.JHelpNavigator.updateUI(JHelpNavigator.java:276)
    at
    javax.help.JHelpNavigator.<init>(JHelpNavigator.java:105)
    at
    javax.help.JHelpGlossaryNavigator.<init>(JHelpGlossaryNavigator.java:
    62)
    at
    javax.help.GlossaryView.createNavigator(GlossaryView.java:82)
    at javax.help.JHelp.setupNavigators(JHelp.java:148)
    at javax.help.JHelp.<init>(JHelp.java:126)
    at javax.help.JHelp.<init>(JHelp.java:76)
    at
    sunw.demo.jhdemo.JHLauncher$DisplayAction.actionPerformed(JHLauncher.
    java:956)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown
    Source)
    at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
    n Source)
    at
    javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
    Sour
    ce)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
    Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown
    Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown
    Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
    Source)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.Dialog$1.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
    Source)
    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

    Hi Colum,
    Thanks for your reply.
    Yes, I have gone through the Peter Grainge's article. It is
    indeed very informative and I have installed the JDK and the JH
    according to the instructions given therein. My installation seems
    complete as the viewer works fine. The JDK version is 1.4.2_18 and
    the JH version is 2.0. The environment variables have also been set
    accordingly.
    All this while I was thinking it is a Java issue so I have
    tried out with different JDK versions.
    But now I think it can be a tool issue because :
    I can view the existing JavaHelp file with the current Java
    viewer.(if I do not open the project in X5)
    I can view Sun supplied sample jar files with the viewer.
    I can create new JavaHelp files with RHX5 and the current JDK
    and JH installation and view those files.
    I cannot view the JavaHelp file if I convert the .mpj to .xpj
    (the generate dialog works fine and says compilation is complete).
    The Display button does not display the file. The view
    command line command throws up the error mentioned in my earlier
    mail.
    Would appreciate any pointers.
    Best regards,
    Urmi

Maybe you are looking for