CHM help file and java

is there any way to open a chm help file using java (so that the help viewer starts up)? this program will probably display a chm if it's running on a windows machine and in html if not

Useing RunTime Class in Java you can opern the CHM help file using the hh.exe
The hh.exe will be present in the windows directory.
See if this helps.
Your doubts are not related directly to JNI.
Didnt I misunderstand.
DHamo.

Similar Messages

  • How to call .chm help file in java ?

    Hello everybody, at first i am sorry for my bad English. I am doing a project. It request that i have to create a help file for application. But when i create a .chm help file. I can't launch it from my application. Error : Invalid win32 Application. I used Runtime.getRuntime().exec(" file name "); to call .chm file . But it is incorrect. Please help me.
    Thanks in advance.

    do
    Runtime.getRuntime().exec("hh.exe \"file name\"");

  • Run chm help file through java code

    hello,
    would you tell me how can i run a help.chm file using java code. i am trign this but no luck.
    first try
    Process pp=run.exec("C:/Program Files/Internet Explorer/IEXPLORE.exe ./res/bobftphelp.chm" );
    Second try
              Process pp=run.exec(" ./res/bobftphelp.chm" );
    It run fine a help.doc file but not help.chm file.
    please help me
    Thanka in advance
    Ravi Charan

    The second address given to that function, does it relate to the class that its being called from? cause i've got
    Runtime.getRuntime().exec("C:\\WINDOWS\\hh.exe .\\HelpFile_9_3.chm" );where HelpFile_9_3 is in the same folder as my class, but it won't work. Can anyone help?
    Also, can you search within a chm file from Java? If I get that above code working, I presume it'll open the help file to the main page. I'd like to search within that document for a word or phrase - possible?
    Thanks!
    Edited by: Pulkse.co.uk on Sep 10, 2008 8:18 AM

  • How to call .chm Help File

    How to call .CHM help file on click of button through the dialog? I tried using the command WinHelpCall() but unable to find the required result. Also could anyone please suggest how to I get a link/jump to the subtopics on click of help button under that module Example Under Navigator device if the help button is clicked the help file has to display Navigator Page.
    Can anyone provede me a quick suggestion.
    Thanks in Advance

    DIAdem doesn't have a method to open .chm files because these files are Microsoft help files, rather than DIAdem specific help files. However, there is a KnowledgeBase on Microsoft's web page that may be of help. You can find this document at http://support.microsoft.com/?kbid=209843. I found this by doing a web search for "Programmatically open .chm". I hope this helps you.
    Regards,
    Shannon R.
    Applications Engineer
    National Instruments

  • Winhelp Help system and Java

    Hello,
    Of the several products we develop, one, a Java program, uses the Java Help help system (logically). The others use a standard Winhelp help system (developed in Robohelp). Our current workflow for developing a help system for the Java program is to batch convert the Winhelp RTF files into HTML files. The problem is, most of our Winhelp formatting is either dropped or incorrectly represented in the Java help file. Also, I prefer the look and feel of a Winhelp system over Java.
    Is it possible for a Java program to be modified so that it supports a Winhelp help system and not a Java Help system? If so, how is this done, and where can one find information on the process?
    If not, what options do we have to "pretty up" the Java output from the conversion?
    Thanks!
    Todd

    Thanks for your response. Could you direct me to a resource that explains the steps for accomplishing this? I'll need to provide the development staff with instructions.
    Thanks again!

  • .bat files and java program

    I know that I have posted something just like this before, but I just can't get this to work. I want to have my application call a .bat file and execute it. Can anyone please supply me some code (maybe just a small program) that executes a .bat file from within the program itself. This would be very helpful. I just can't get it to work at all.

    To open notepad in a windows system:
    import java.io.*; // Needed for IOException
    public class Notepad
    public static void main(String[] args)
    try
    Runtime.getRuntime().exec("notepad");
    catch (IOException ioExc)
    System.out.println("Something has gone horribly wrong!");
    Notes:
    1) notepad is usually in the path system variable. You will probably have to type in the entire path to the .bat file you want to execute.
    2) The .exec(programName) will block until the program is terminated.
    3) You are losing any semblance of system independance by doing this.

  • Mystery of using CHM help files in LV

    Guys,
    If I have compiled help file (CHM) what can I do with it and how can I do it within a LV exe??
    (a) If I place dedicated HELP buttons on the different UI's can I get LV to open the CHM at different (relevant) pages of the help file?
    (b) I read something about modifying the Context Help of control (and enabling the context help to be shown in exe is another problem) and using the question mark in context help window to open again relevant page of the help file.
    I cannot find a good place to start.  Where are the tutorials and examples and documentation on what the options are and what's needed to be done??
    Thanks. 

    I think you are searching for "Control Online Help", a function you find in the Programming >> Dialog&User Interface palette.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Mac Help file and OSX 10.4.5

    HI all and Help if you can, please.
    I was prompted by my power PC IMac G5 to upgrade the OS to 10.4.5 which I did by clicking on the link in the window. All seems fine except now I can't open any of my Mac Help topics in the Help window. The window opens as a blank. All the other Help files seem fine. I tried "Chat" with the IMac help team and after finally getting someone to come on line, he suggested I " delete the releated preference files for help", but never told me how to do that so I don't know if it will work or not. Can anyone out there give me an idea of how to get my Mac Help to work? Thanks to all.

    Hi Mac User,
    first of all: WELCOME TO THE DISCUSSIONS!
    Try this: FIXED: Help Viewer crashes or shows blank window

  • Change chm help file location in SBO

    Hi,
    I have a problem in SBO where the help file location for when I press F1 in SBO is using the wrong server name and I need to update it. I can see this via Top Menu > Help > Help Settings. Now I can't see where I change this.
    Thanks in advance.

    Hello,
    I suggest to resintall SAP B1 in your server, and do not forget to install help file. After that, repeat the step to activate the help file in the help settings.
    Rgds,

  • Anymore Infromation on DI Server available besides help file and sample

    Hi everyone
    I just wanted to know if there is any extra documents, e-learning for the DI Server. I've already looked at all the new sdk e-learning, i don't see one for the DI-Server. I have the one sample, is there not anymore??? I also have the help file. Is there any additional documentation that can be found???
    Thanks in advance

    Hi Louis,
    We have done the search and could also not find much, but eventually got it up and running by using the documentation and trial and error. Maybe it will help asking specific questions here rather than asking in general.
    Hope it helps,
    Adele

  • Please help me ~ use WSDL file and Java Querypage Class

    First, i can't write english very well. so before read this you know.
    i have a project. and oracle suggest "http://www.webbasedcrmsoftware.com.au/crm-on-demand-tutorials/65-java-access-to-crm-on-demand#_Toc224720963 " . Do you know this URL?
    anyway I Along the this URL Explanation. but i have a problem.
    First, please look this source.(that URL same source)
    <Java Source Start(QueryPage(Select?))>
    package crmod;
    import java.net.HttpURLConnection;
    import java.net.URL;
    import java.util.StringTokenizer;
    public class CRMOD {
    public CRMOD() {
    public static void main(String[] args) {
    String jsessionid, jsessionid_full;
    String endpoint;
    try
    CRMOD crmod = new CRMOD();
    System.out.println("Loggin In");
    jsessionid_full = crmod.logon("https://secure-ausomxana.crmondemand.com/Services/Integration", "MY ID", "MY PASSWORD");
    jsessionid = getSessionId(jsessionid_full);
    System.out.println(jsessionid);
    endpoint = "https://secure-ausomxdsa.crmondemand.com/Services/Integration" + ";jsessionid=" + jsessionid;
    URL urlAddr = new java.net.URL( endpoint);
    crmondemand.ws.contact.Contact service = new crmondemand.ws.contact.ContactLocator();
    crmondemand.ws.contact.Default_Binding_Contact stub = service.getDefault(urlAddr);
    crmondemand.ws.contact.ContactWS_ContactQueryPage_Input contactlist = new crmondemand.ws.contact.ContactWS_ContactQueryPage_Input();
    crmondemand.ws.contact.ContactWS_ContactQueryPage_Output outlist = new crmondemand.ws.contact.ContactWS_ContactQueryPage_Output();
    crmondemand.xml.contact.Contact[] contacts = new crmondemand.xml.contact.Contact[1];
    crmondemand.xml.contact.Contact contact = new crmondemand.xml.contact.Contact();
    crmondemand.xml.contact.Activity[] activities = new crmondemand.xml.contact.Activity[1];
    crmondemand.xml.contact.Activity activity = new crmondemand.xml.contact.Activity();
    activity.setSubject("");
    activity.setType("");
    activity.setRowStatusOld("");
    activities[0] = activity;
    contact.setContactLastName("='Lee'");
    contact.setContactFirstName("");
    contact.setContactId("");
    contact.setListOfActivity(activities);
    contacts[0] = contact;
    contactlist.setPageSize("10");
    contactlist.setUseChildAnd("false");
    contactlist.setStartRowNum("0");
    contactlist.setListOfContact(contacts);
    System.out.println("contactlist =" +contactlist);
    System.out.println("==1==");
    outlist = stub.contactQueryPage(contactlist);
    System.out.println("==2==");
    crmondemand.xml.contact.Contact[] results =
    new crmondemand.xml.contact.Contact[1];
    results = outlist.getListOfContact();
    crmondemand.xml.contact.Activity[] activitiesout =
    new crmondemand.xml.contact.Activity[1];
    int lenC = results.length;
    if (lenC > 0) {
    for (int i = 0; i < lenC; i++) {
    System.out.println(results.getContactFirstName());
    System.out.println(results[i].getContactLastName());
    System.out.println(results[i].getContactId());
    int lenA = results[i].getListOfActivity().length;
    if (lenA > 0) {
    for (int j = 0; j < lenA; j++) {
    activitiesout = results[i].getListOfActivity();
    System.out.println(" " + activitiesout[j].getSubject() + ", " + activitiesout[j].getType());
    crmod.logoff("https://secure-ausomxdsa.crmondemand.com/Services/Integration", jsessionid_full);
    System.out.println("Loggin Out");
    catch (Exception e)
    System.out.println(e);
    private static String logon(String wsLocation, String userName, String password) {
    String sessionString = "FAIL";
    try {
    // create an HTTPS connection to the On Demand webservices
    URL wsURL = new URL(wsLocation + "?command=login");
    HttpURLConnection wsConnection = (HttpURLConnection)wsURL.openConnection();
    // we don't want any caching to occur
    wsConnection.setUseCaches(false);
    // we want to send data to the server
    // wsConnection.setDoOutput(true);
    // set some http headers to indicate the username and passwod we are using to logon
    wsConnection.setRequestProperty("UserName", userName);
    wsConnection.setRequestProperty("Password", password);
    wsConnection.setRequestMethod("GET");
    // see if we got a successful response
    if (wsConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {
    // get the session id from the cookie setting
    sessionString = getCookieFromHeaders(wsConnection);
    } catch (Exception e) {
    System.out.println("Logon Exception generated :: " + e);
    return sessionString;
    * log off an existing web services session, using the sessionCookie information
    * to indicate to the server which session we are logging off of
    * @param wsLocation - location of web services provider
    * @param sessCookie - cookie string that indicates our sessionId with the WS provider
    private static void logoff(String wsLocation, String sessionCookie) {
    try {
    // create an HTTPS connection to the On Demand webservices
    URL wsURL = new URL(wsLocation + "?command=logoff");
    HttpURLConnection wsConnection = (HttpURLConnection)wsURL.openConnection();
    // we don't want any caching to occur
    wsConnection.setUseCaches(false);
    // let it know which session we're logging off of
    wsConnection.setRequestProperty("Cookie", sessionCookie);
    wsConnection.setRequestMethod("GET");
    // see if we got a successful response
    if (wsConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {
    // if you care that a logoff was successful, do that code here
    // showResponseHttpHeaders(wsConnection);
    } catch (Exception e) {
    System.out.println("Logoff Exception generated :: " + e);
    * given a successful logon response, extract the session cookie information
    * from the response HTTP headers
    * @param wsConnection successfully connected connection to On Demand web services
    * @return the session cookie string from the On Demand WS session or FAIL if not
    found*
    private static String getCookieFromHeaders(HttpURLConnection wsConnection) {
    // debug code - display all the returned headers
    String headerName;
    String headerValue = "FAIL";
    for (int i = 0; ; i++) {
    headerName = wsConnection.getHeaderFieldKey(i);
    if (headerName != null && headerName.equals("Set-Cookie")) {
    // found the Set-Cookie header (code assumes only one cookie is being set)
    headerValue = wsConnection.getHeaderField(i);
    break;
    // return the header value (FAIL string for not found)
    return headerValue;
    private static String getSessionId(String cookie) {
    StringTokenizer st = new StringTokenizer(cookie, ";");
    String jsessionid = st.nextToken();
    st = new StringTokenizer(jsessionid, "=");
    st.nextToken();
    return st.nextToken();
    this source excute, print this error message.
    Loggin In
    281e56bb61372daba8c0a7db2d85d403536cf7645ee1247f527466c281cf1f30.e34QbhuQbNqSci0LbhiKaheTaNyKe0
    - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
    contactlist =crmondemand.ws.contact.ContactWS_ContactQueryPage_Input@702c65ba
    ==1==
    java.net.ConnectException: Connection refused: connect
    Process exited with exit code 0.
    i found many internet homepage, but i can't solve this problem.
    help me~~~ T.T
    p.s: I set My host file -> 127.0.0.1 some-proxy.com
    JDeveloper version = 11g Release 2
    OS = windows XP

    It looks like you have some problems that aren't CRMOD related.
    If you have the XML you are building and can post here that would help as well.

  • Can't get java into extensions to view PDF's on web pages. I've following all the directions in the help file and had to back to explorer. HELP

    Have a Gateway computer that is running windows XP.
    C drive is full, but system pulls programs from either C or D, so I do my program installations on D. E is for my files.

    The location is Settings>General>Accessbility> White on Black
    Try the following:
    - A reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsybc and resyc all music
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.

  • How to incorporate .dll files and java

    i have one .dll file (that .dll file was not developed by me but i know which methods are there in that .dll file) then how to incorate that one

    What exactly do you mean by "how to incoporate" .dll file?
    I assume you want to call native methods defined in the .dll file in a java progam.
    If so, then this Java Native Interface (JNI) tutorials and code camps at http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html tells you how.
    Hope this helps.

  • Working with .pdf files and JAVA

    Hi,
    does anyone have an answer to how I can find more information on .pdf files?
    I would like to convert .pdf files to textfiles and/or xml files. I can not find it in the j2se Edition, and someone told me it can be found in the j2ee edition, but I can not find anything there either. Please help..
    thanks,
    R.

    thanks for your reply. What tools do you mean? I know lots of tools for converting text to a .pdf file, but no tools for the other direction. There is an API available (commercial), that lets you work with PDF in JAVA, but i am interesting in the other possibilities.
    Regards

  • Synchronized between Windows File and Java

    Hi' could anyone help me..i have problem like this :
    i have folder named javatutorial in my C:\ , i try rename that folder name into myjavatutorial and read the new name (both operation rename and read using my java program)
    this is my code :
    File x = new File("C:\\javatutorial");
    x.renameTo(new File("C:\\myjavatutorial"));
    System.out.println(x.getName());why java always print the old folder name?
    if i see it in windows explorer the folder name already change. Why Java cannot synchronized between the new name and the old name? what i want java can print the new folder name...how to implement this?
    i hope my question easy to understand...
    thanks a lot...

    public myProgram()
    File x = new File("C:\\javatutorial");
    x.renameTo(new File("C:\\myjavatutorial"));
    File[] file = x.listFiles();
    for (int i = 0; i < file.length; i++)
         System.out.println(file[i]);
    if between x and C:\javatutorial have the same path, it will print :
    C:\javatutorial\a
    C:\javatutorial\bNo it won't because it won't compile.
    This will:import java.io.File;
    public class RenameEg {
         public static void main(String[] args) {
            File x = new File("C:\\javatutorial");
            x.renameTo(new File("C:\\myjavatutorial"));
            File[] file = x.listFiles();
            for (int i = 0; i < file.length; i++) {          
                 System.out.println(file);
    }With the following outputC:\>dir javatutorial
    Volume in drive C is IBM_PRELOAD
    Volume Serial Number is 400B-A170
    Directory of C:\javatutorial
    28/09/2006  07:06 p.m.    <DIR>          .
    28/09/2006  07:06 p.m.    <DIR>          ..
    28/09/2006  07:06 p.m.    <DIR>          a
    28/09/2006  07:06 p.m.    <DIR>          b
                   0 File(s)              0 bytes
                   4 Dir(s)   6,705,012,736 bytes free
    C:\>javac -cp . RenameEg.java
    C:\>java -cp . RenameEg
    Exception in thread "main" java.lang.NullPointerException
            at RenameEg.main(RenameEg.java:10)
    C:\>dir javatutorial
    Volume in drive C is IBM_PRELOAD
    Volume Serial Number is 400B-A170
    Directory of C:\
    File Not FoundYou get the null pointer exception because listFiles() returns null. It
    returns null becuse the folder had its name changed.
    To list the files of the renamed folder, you will have to create a new File
    based on the new (changed) name.

Maybe you are looking for

  • XL Reporter in Sap 8.8 PL 16running On Server 2008 R2  and SQL 2008 R2

    Within the above environment (XL Reporter in Sap 8.8  PL 16 running On Server 2008 R2  and SQL 2008 R2) Xl reporter is loading and appears to work fine until you look at the spreadsheet result It is completely blank except for the titles Yet Excel Ma

  • How to upload and download Long text for WBS, Project, Network

    Hi all, I have two isssues. 1) I am extracting Projects, WBS , Network , Network activity and network activity element from a SAP 4.7 system using bapi's BAPI_PROJECTDEF_GETDETAIL BAPI_PROJECT_GETINFO BAPI_NETWORK_GETINFO BAPI_BUS2054_GETDATA I am ab

  • 2lis_11_vaitm vs 2lis_11_vahdr

    Hi gurus, I need to enhance 2lis_11_vaitm with VDATU field (sold-to party's Requested Delivery Date.) Actually this extractor contain field with same name and different meaning (Update date for statistics update). The reason is we've done it with bad

  • Workflow question; planner user and approve?

    Hi! We are testing our planning application and we discovered that a user with a planner role can approve his/her planning unit ??? He/She can choose from promote/approve when changing status of of selected enity (with write access). Is this a normal

  • Problem with authorize my computer

    Hi I am having problems with the authorization of my computer every time I go to "shop" "authorize computer"and the itunes asks me apple ID and password and I type it and later itunes says that this computer is Allow 1 of 5 but when I go through my a