Cannot execute Microsoft HTML Help file from within Eclipse managed app.

I took an easy solution and created a help system for a large Java application using the Microsoft HTML Help Workshop as the IDE. The Help System does exactly what the client wants, but when I tried to integrate it into the application I ran into a brick wall.
I wrote a very small Java app to see if I could execute the compiled help file (RAS_Help.chm) under the simplest circumstances. The code, which runs fine under VJ++ throws the following exception when run from Eclipse
e: java.io.IOException: CreateProcess: RAS_Help.chm error=193
* Created on Mar 20, 2004
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
package pkgTesting;
import java.io.*;
* @author Owner
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
public class ExeTest {     
     public static void showHelp() {
          Runtime rt = Runtime.getRuntime();
          String prog = "C:\\SCA\\RAS_Help.chm";
          try {
               rt.exec(prog);
          } catch (IOException e) {
               System.err.println("e: " + e);
     public static void main(String args[]) {
          showHelp();
I assume the problem is in launching .chm files, since if I change the program I want to execute from the RAS_Help.chm file to the Windows Solitare game (sol.exe) the program works like a charm with no errors thrown.
Can anyone give me some guidence on this? If it is impossible to run the HTML Help file I created, I'd be ammenable to redoing it in some other package, if that would guarentee my being able to use it in the client's large application.

Try this;-*/class OpenBrowser{
   final String WIN_ID = "Win";
* @throws java.lang.Exception
   OpenBrowser(java.io.File file){
      if(isWindowsPlatform() ){
         try{
            Runtime.getRuntime().exec(tryCommand1()+file);
         }catch(Exception exc1) {
           try{
               Runtime.getRuntime().exec(tryCommand2()+file);
            }catch(Exception exc2) {
               try{
                  Runtime.getRuntime().exec(tryCommand3()+file);
               }catch(Exception exc3) {
                  if(MainEditor.getOpenBrowserHelper() ) new OpenBrowserHelper(file);
      else {
         try{
            Runtime.getRuntime().exec(tryCommand3()+file);
         }catch(Exception exc4) { if(MainEditor.getOpenBrowserHelper() ) new OpenBrowserHelper(file); }
* @return true if this is a Windows OS
   private boolean isWindowsPlatform(){
      String os = System.getProperty("os.name");
      if ( os != null && os.startsWith(WIN_ID))
         return true;
         return false;
* @return String path /protocal to open the Internet Explorer browser
   private String tryCommand1(){
      return "C:\\Program Files\\Internet Explorer\\Iexplore.exe file://";
* @return  String path /protocal to open the default browser
   private String tryCommand2(){
      return "start rundll32 url.dll,FileProtocolHandler file://";
* @return  String path /protocal to open the default browser
   private String tryCommand3(){
      return "file://";
}

Similar Messages

  • Possible to create a JAR file from within a java app?

    Is it possible to create a jar file from within a java application?
    Can it be done more elegantly than by spawning-off another
    process with the Runtime and exec() portions of the api?
    Thanks
    Scott

    Thanks! I was mislead by the API notes for java.util.jar:
    The JarOutputStream class is used to write the contents
    of a JAR file to any output stream.
    I was looking for a class or method to make jar files.
    Seems this is it ;)
    Thanks
    Scott

  • Launching/executing files from within AIR

    Hi.
    Just wanted to know if I can launch files from within my AIR
    app...for instance I would like the user to click a button which
    then opens a Microsoft Word doc...the Word doc doesn't have to open
    in the AIR app, it can open on the desktop (Windows XP).
    Thanks for the help.

    Mike provided a good proof here:
    http://www.mikechambers.com/blog/2008/01/17/commandproxy-net-air-integration-proof-of-conc ept/
    HTH

  • HTML help files.

    Is there any good way to control HTML help files from LabView (*.chm)

    Hello,
    Without the original compiler and project files it is not possible. I have been writing all types of help files mostly in CHM, without the project file and the compiler you simple can not. The actual compiler is critical as third party compilers will inject
    their own stuff into project files that the native compiler from Microsoft will not understand.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Open an HTML Help file

    I'm trying to open an html help file from my program. The source file where I call it is in the package A in the JAR, ant the HTML file is in package HTML in the JAR; so that I do:
    Runtime.getRuntime ().exec ("cmd /c start HTML/Help.html");
    But it doesn't find the file. Any idea?

    If it's in your JAR, you can't directly use a system call to open it. You have to extract it from the JAR and save it to disk unpacked, at least temporarily. Otherwise, you use an All-Java HTML viewer that can cope with an InputStream source (however, hyperlinks won't work in this case). For this reason, I would suggest not to include the HTML files into the JAR at all but deliver it along with the JAR.

  • Mk:@MSITStore cannot open file from within RoboHelp

    Have recently upgraded to RoboHelp 8 and now see the much discussed "Cannot open the file: mk:@MSITStore:<path>" error but only when trying to view .chm files from RoboHelp for Word, by clicking "View Primary Layout".  Weirdly enough, some projects display the .chm correctly when clicking "View Result" right after generating the help file, some projects do not.  Viewing .chm directly from output location is always fine.  For very small projects, the "View Primary Layout" button seems to work.  For very large projects, the error message always occurs.  I've un-registered and re-registered hhctrl.ocx as well as downloaded, replaced and registered the previous ocx version (4.73.8412.0) as well as re-registered itss.dll  The OS is Windows XP Professional with IE 7.  Suggestions please?  Thanks!

    RoboHelp 8
    XP Pro
    I recently ran into a problem viewing some pdfs and Word Documents in a generated html help file.
    Setup:
    pdfs and .docs in baggage files
    links to the baggage files created in tables
    2 tables in each topic
    pdfs/docs in first table in each topic opened without a problem
    pdfs/docs in second table would not open -  address bar display:
    (Example)
    mk:@MSITStore:C:\EOCs\!SSL!\Microsoft_HTML_Help\BlueMedicare_EOCs.chm::/2012_EOCs/2012_WS_ Book.pdf
    (Pause for much gnashing of teeth, pulling of hair, angst, frustration and thinking) but no pdf (or Word doc)
    I can't change registry entries or any other computer settings.  No administrative rights.
    Anyway, it couldn't be an outdated registry entry because within one project, some pdfs and docs displayed as expected and others didn't.
    Checked to see what the differences were in the tables/cells that worked vs the ones that didn't.
    Looking at the HTML,  I found "target=_blank" in each row of the tables that failed to display a baggage file.
    I replaced "target=_blank" with no replacement text -  I left Replace with blank.
    Voila!  All pdfs and docs open just as expected.
    I hope this helps someone. 

  • I have just upgraded to OSX 10.6.8 and now I cannot open or save PDF files from the internet. I get a dialogue box saying the QuickTime plugin has failed. I have tried to download the latest plugin but this doesn't work. Can anyone help?

    I have just upgraded to OSX 10.6.8 and now I cannot open or save PDF files from the internet using either Safari or Firefox. I get a dialogue box saying the QuickTime plugin has failed. Can anyone help?

    Is this what you downloaded: iTunes 10.7?
    When the update fails what if any error report do you get, specifically? Please do this before trying again:
    Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.

  • I cannot open my raw NEF files from my Nikon d3200.  can anyone help me?

    I cannot open my raw NEF files from my d3200; can anyone help me?

    I believe you need PSE11 with the Camera Raw plug-in 7.1 or newer.

  • I cannot get .arw or jpeg files from my Sony A6000 to be taken into my Lightroom 4.4 via the normal "synchronise" process.  I have updated my Pc to Adobe RAW/DNG 8.4 with no improvement.  Can you help please?

    I cannot get .arw or jpeg files from my Sony A6000 to be taken into my Lightroom 4.4 via the normal "synchronise" process.  I have updated my Pc to Adobe RAW/DNG 8.4 with no improvement.  Can you help please?

    With regards to your .arw files:
    You need to either purchase and install Lightroom 5.4 -- OR -- download and install and use the FREE Adobe DNG Converter version 8.4, did you actually launch and use the DNG Converter?
    There should be no problem importing JPG files into Lightroom from your camera, what happens when you try? Is there an error message?

  • Remove glossary tab from Microsoft HTML Help layout

    How do I remove the Glossary tab from Microsoft HTML Help layout? Using RoboHelp 11
    Thanks.

    Hi there
    You do that by editing the Window defintion. Click View > Pods > Project Set-up.
    Expand the Windows folder and double-click the CHM Window definition.
    Then DE-select the Glossary option.
    Cheers... Rick

  • Glossary Tab Not Showing Glossary terms in Microsoft HTML Help Output

    When I generate Microsoft HTML output from my RoboHelp HTML project, the Glossary tab appears correctly showing the glossary terms after clicking the View Output button.  However, when I double-click on the final Compiled HTML Output file from Windows Explorer, the Glossary tab only shows a gray area without any terms.  Here's a screenshot of what appears when I click on this tab:
    I have tried working with the Adobe engineers and they have not found a solution yet.  Anyone able to help?

    Hi there
    Although the thread linked below isn't about the Glossary Tab, the cause is likely the same. So check out the thread and see if it addresses your issue.
    http://forums.adobe.com/message/4292236#4292236
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to run a batch file from within an Oracle 9i Form?

    Hi, I would like to execute a batch file from within an oracle form - I'm assuming there's some PLSQL command I can use? I am not allowed to use any third party libraries, and I'm hoping I can get away without having to progam any C or Java to do it. I don't want to run my java program from my form, but my lecturer is insisting on it.
    Can anyone help?
    Thanx
    Adam

    Can u give me an example
    I need to run a batch files that does a series of step doing dir ( in 3 different folders)
    after each one it shows on screen with a pause & user press enter
    can this work out ?

  • Error Message= x Cannot find the HTML help browser installed on your system.

    Help! I cannot seem to find the solution for the error message I get when trying to generate a layout in Microsoft HTMl Help (Primary Layout). I am using the trial version, but it didn't seem to be an issue for anyone else in my class that was also using the trial version.
    The error message states, "Cannot find the HTML help browser installed on your system."
    Thank you!

    Sounds like a problem with the installation of RoboHelp on those machines. When you install RoboHelp, it installs the necessary files to view a CHM.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Customize Workspace HTML help files

    Hi, is there a way to edit / add to the html help files available to workspace users?
    Thanks
    Michael

    Where adobe Photoshop help is installed depends on the version. It is also not HTML based I beleive its Adobe Air based.
    For example CS2 help is started with  "C:\Program Files\Adobe\Adobe Help Center\ahc.exe"
    and CS5 Help "C:\Program Files\Adobe\Adobe Help\Adobe Help.exe"
    Therfore create a folder for Photoshop help and unzip the zipped Photoshop CS5 help HTML files you say you found into that folder. There will be a root html page file in that folder likely named index.html which you need to point a browser to in order to navagate between the html pages..
    So since you have CS5 perhaps if you create a bat to start a browser pointed to your html help where the bat file name is "C:\Program Files\Adobe\Adobe Help\Adobe Help.exe"  instead of .bat  F1 in CS5 may work.
    You could also try editin your Photoshop shortcut keys delete Photoshop shortcut key F1 from the help menu. After deleteing that shortcut. Create a help.jxs to open your Photoshop Help files index.html file. Then create a action that uses this photoshop script help.jsx and asign F1 to the action. 
    The help.jsx script would be along this line
    // A Photoshop Script by JJMack's used by an Action
    // This script is supplied as is. It is provided as freeware.
    // The author accepts no liability for any problems arising from its use.
    #target photoshop
    app.bringToFront();
    try{
       var URL = new File(Folder.temp + "/PhotoshopHelpt.html");
       URL.open("w");
       URL.writeln('<html><HEAD><meta HTTP-EQUIV="REFRESH" content="0; url=file:///C:/HelpPath/Index.htm"></HEAD></HTML>');
       URL.close();
       URL.execute();
    }catch(e){
    alert("Error, Can Not Open.");

  • Crash on search function for HTML Help file (.chm) when connected to a Visual C++ application

    Crash on search function for HTML Help file (.chm) when
    connected to a Visual C++ application
    I use the RH_ShowHelp API command to connect a HTML Help file
    (.chm file generated by RoboHelp Word X 5) to my Visual C++
    application. My application is able to call up this HTML help file
    in context-sensitive mode and everything is working great in the
    Contents and Index panels EXCEPT when I click on List Topics (after
    I enter a KEYWORD for search) in the Search panel.
    I got an error that said “Unhandled exception in
    xxxx.exe.(HHCTRL.OCX):0xC00000FD: Stack overflow”
    I am able to execute this .chm file by itself and the search
    function works well in this case. I am using HHActiveX.dll that is
    created on 2/23/04. Is this the correct version?? Any advice what
    to do here??

    Hi agschin and welcome to the RH forums. The hhactivex.dll
    file is not used by the search function so you can rule that our.
    Have you tried recompiling and seeing if the problem still happens?
    You can also start the Bug Hunter feature in RH - View > Output
    View and then select the Bug Hunter button - and see if that throws
    up any clues.

Maybe you are looking for

  • Link multiple vendors to a single vendor no.

    Hi All, I have a requirement where in a  vendor has 5 to 6 vendor no.s in SAP representing each line of business . Business has to enter all the relevant vendor no.s in the system to get any report .Unlike to this, now business wishes to see what is

  • HT4623 my computer backs up my ipad but suddenly the ipad is no any longer  recognized by the computer

    I live in thailand. I back up my 2 Ipads on my computer. Suddenly yesterday the  ipad 3 went blank excpt for the B/White logo on the screen. The ipad is no longer recognized on my computer when I plug it in to my back up computer with the usb connect

  • IPod Classic games gone from iTunes Store?

    Okay, forgive me if this is a dumb question, but after the restyling of the iTunes store, it seems to me that iPod Classic and 5th generation games are gone. I can't find them anywhere, even searching games names like Song Summoner. Did Apple really

  • % Sign in Bex

    Hi all, My requirement is to have % sign for the formula. Say for example my BEx output for the formula is 0.9 then i should be able to see 09.%. How can I do this? Is it even possible? Please help. Thanks, Dave.

  • Dreamweaver CS5 won't let me edit previous CS4 templated pages

    I am trying to update templated pages from a website built in dreamweaver CS4.  When I try to edit them I am not able to select any of the text or images within the editable regions.  If I switch back to CS3 or CS4 they are editable again.  Any help