3 Replies Latest reply: Feb 3, 2009 1:06 AM by urmiroy RSS

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

    urmiroy
      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)


        • 1. Re: Problem in viewing a converted JavaHelp (jar) file (created using RH2002 to RoboHelp X5)
          RoboColum(n) Community Member
          Hi Urmi.

          By the sounds of things you may have a very old JavaHelp component if you are upgrading from RH 2002. First step would be to ensure you have all the latest components. Peter Grainge has a good article of what is required on his site.
          • 2. Re: Problem in viewing a converted JavaHelp (jar) file (created using RH2002 to RoboHelp X5)
            urmiroy Community Member
            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
            • 3. Re: Problem in viewing a converted JavaHelp (jar) file (created using RH2002 to RoboHelp X5)
              urmiroy Community Member
              The issue of viewing jar files - resolved.

              Hi All,

              JavaHelp requires the Helpset file and the navigational files to build and display itself correctly. In this case, it was not able to locate one of the navigational files that was not getting generated (unless I chose to generate Compressed JavaHelp with Source Files) .

              I do not know how the navigational files generated in RH 2002, but when you have an existing project (.mpj) that needs to be upgraded to .xpj, it is important to generate JavaHelp with the source files for the first time.

              Once it creates all the navigational files and the jar file can be viewed, I can go back to the option of creating just the Compressed JavaHelp and can view the jar file also.

              Best regards

              Urmi