How to call windows help files .hlp from Java program

Hai all everybody
How to call windows Help file that is xxx.hlp files from java programs
any help great!!!!
regards
veeru

How about
Runtime.getRuntime().exec("start xxx.hlp");

Similar Messages

  • How to use a Windows Help File (.hlp) - URGENT

    Hello!
    Can anybody tell me how to use a windows help file (.hlp) in my Java application? Is there any possiblity to reference a specific topic (by Help Context-ID)?
    Thanks in advance,
    Phil

    try calling the Runtime.exec() method
    pass the paramter String as <filename>.hlp
    i donno about the context
    regards
    rohan

  • 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

  • How to call a html file in a java file

    how to call a html file inside a java file ?

    Hopeless. Are you by any chance a rare gas? You seem completely inert. LOL You totally pwned him there :rolls eyes:
    well, no, I think he's looking for something to this degree:
    in HTML, there is a mailto: command that makes the system default handled way to email emails open up. He's looking for a command thats very nice and opens a html file in the system default browser.
    So, Dick, Runtime.exec would work execpt that he needs a way to find the default system browser to call exec on, AND he has to know how to pass html file locations to the executable via command line arguments
    He just didnt try to phrase it at all :P

  • How to run an exe file in a java program

    Hi,
    Can somebody tell me how to run an exe file in a java program.
    Thank you!

    Yes, java.lang.Runtime.exec().
    Read this carefully before you do:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    Don't write a line of code before you're reviewed and understood the article completely. - MOD

  • How to create windows users and groups from Java

    Hi,
    Can any one please tell me, which Package/API will helps to create windows users and groups from Java.
    Thanks,
    M.Prem.

    You can't do it with pure Java, and it's not in the core API. You'd have to write a native function to do it, using whatever API Windows provides, and then call it with JNI. Or look for a third party native-based Java library that already does that.

  • How to call a portal component in a java program

    Hi guys,
    We need to add some more operation after user log into portal, thus we need to call a portal component after statement proxy.logon(null) from java program SAPMLogonLogic.java,
    Any ideas how can we call the component directly?
    Thanks

    Hi,
    We can access iview,page,role(pcd objects) thru APIs
    refer [this link|http://help.sap.com/saphelp_nw04/helpdata/en/5f/cf9d4207e1c86ae10000000a155106/frameset.htm].
    may be u can use these APIs to do the task.
    do revert.

  • How to read an XML file into a java program?

    hi,
    i want to load the following very simple xml file in my java program.
    <root>
    <weblogic>
    <url value="t3://192.168.1.160:7001" />
    <context value="weblogic.jndi.WLInitialContextFactory" />
    </weblogic>
    </root>
    I am getting the error: " Line=1: cvc-elt.1: Cannot find the declaration of element 'root'."
    What might be the problem can anyone help me out.
    My java class code is:
    public class BIXMLReader {
    /** All output will use this encoding */
    static final String outputEncoding = "UTF-8";
    // Parses an XML file and returns a DOM document.
    // If validating is true, the contents is validated against the DTD
    // specified in the file.
    public static Document parseXmlFile(String filename, boolean validating) {
    try {
    // Create a builder factory
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setNamespaceAware(true);
    factory.setIgnoringComments(false);
    factory.setIgnoringElementContentWhitespace(false);
    factory.setCoalescing(false);
    factory.setValidating(validating);
    // Create the builder and parse the file
    System.out.println("filename = " + filename);
    DocumentBuilder db = factory.newDocumentBuilder();
    // Set an ErrorHandler before parsing
    OutputStreamWriter errorWriter = new OutputStreamWriter(System.err, outputEncoding);
    db.setErrorHandler(new MyErrorHandler(new PrintWriter(errorWriter, true)));
    Document doc = db.parse(new File(filename));
    System.out.println(doc.toString());
    return doc;
    } catch (SAXException e) {
    System.out.println("A parsing error occurred; the xml input is not valid. " + e.getMessage());
    } catch (ParserConfigurationException e) {
    System.out.println("Parser configuration exception has occured");
    } catch (IOException e) {
    System.out.println("IO Exception has occured " + e.getMessage());
    return null;
    // Error handler to report errors and warnings
    private static class MyErrorHandler implements ErrorHandler {
    /** Error handler output goes here */
    private PrintWriter out;
    MyErrorHandler(PrintWriter out) {
    this.out = out;
    * Returns a string describing parse exception details
    private String getParseExceptionInfo(SAXParseException spe) {
    String systemId = spe.getSystemId();
    if (systemId == null) {
    systemId = "null";
    String info = "URI=" + systemId +
    " Line=" + spe.getLineNumber() +
    ": " + spe.getMessage();
    return info;
    // The following methods are standard SAX ErrorHandler methods.
    // See SAX documentation for more info.
    public void warning(SAXParseException spe) throws SAXException {
    out.println("Warning: " + getParseExceptionInfo(spe));
    public void error(SAXParseException spe) throws SAXException {
    String message = "Error: " + getParseExceptionInfo(spe);
    throw new SAXException(message);
    public void fatalError(SAXParseException spe) throws SAXException {
    String message = "Fatal Error: " + getParseExceptionInfo(spe);
    throw new SAXException(message);
    }

    ok thanks, i can get the elements, but why did it not validate it?
    I want to read the child nodes of "weblogic" not by their name but by their index. Because i dont want to confine the reader so i want to read all the child nodes of weblogic (looping over them). i m doing the following but its not returning me the correct result and giving me the wrong count of child nodes.
    Element elementNode = (Element)doc.getElementsByTagName("weblogic").item(0);
    NodeList nodeList = elementNode.getChildNodes();
    int length = nodeList.getLength();
    System.out.println("length = "+ length); // the length its giving is 5 but i shuld get only 2
    for(int i=0; i < length; i++) {
    Element elmChild = (Element) nodeList.item(i);
    System.out.println(elmChild.getAttribute("value"));
    what might be the problem?

  • 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\"");

  • How to call 7Zip's file manager from Powershell?

    Hello,
    I need to call 7zip's file manager to extract some files. Did anybody try this before?
    I appreciate any suggestions.

    Not sure what you mean by "call 7Zip's file manager."
    But you can run the 7z.exe program from the PowerShell command line just fine; e.g.:
    PS C:\> & "C:\Program Files\7-Zip\7z.exe" x "C:\Test Files\Test File.zip"
    -- Bill Stewart [Bill_Stewart]

  • How to call EJB deployed on OC4J from java stored procedure?

    Hello,
    I'd like to call EJB from java stored procedure. My example works fine from command line, but the problem seems to be with deployment of this code into database. Especialy I'm wondering how to reference jars like oc4jclient.jar, ejb.jar, ... from java stored procedure.
    Is there some example how to do that ?
    Can You help me please ?
    Many thanks,
    Radim Kolek,
    Eurotel Prague.

    Hi,
    You may want to check up this thread
    Calling JBoss EJBs from Java stored procedure
    Hope this helps,
    Sujatha.
    OTN Group.

  • How to call webservices in business objects from java

    hi everyone, i am having a scenerio were a program which is written in java, this java program will instantiate when i get the data into my database. the java program need to fire and pass the parameters to the webservices in the business objects to create a file depending upon the parameters which r passed by the java to webservices. how i need to cinfigure in business objects webservicess,to get what i am looking or what r the things i need
    we r using xi 3.1 sp3, web application server tomcat.

    Hi,
    case 1: for WDP, you can create the web service model via "Import Adaptive Web Service" or "Import Web Service Model (deprecated)" by supplying wsdl URL.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2bweb%2bservice
    case 2: In ABAP, create a proxy object at trx code SE80.
    http://help.sap.com/saphelp_nw04s/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm
    Both cases are wizard-based. It's pretty intuitive.
    - julius

  • How to call sql procedure with parameter from java

    Hello,
    i am trying to call one sql procedure with two parameters from java.
    the first parameter is In parameter, the second is OUT.
    the return value of this java method should be this second parameter value.
    the following is my java code:
    protected String getNextRunNumber() {
         String runnumber=null;
         String sql = "{call APIX.FNC_SST_EXPORT.GET_NEXT_RUNNUMBER (?,?)}";
    CallableStatement state = null;
    try{
         Connection con= getDatabaseConnection();
         state = con.prepareCall(sql);
         state.setString(1, m_appKeyExport);
         state.registerOutParameter(2,Types.NUMERIC,0);
         state.execute();
    ResultSet resultR = (ResultSet)state.getObject(2);
         while (resultR.next()) {
              runnumber=resultR.getBigDecimal(1).toString();
    catch (SQLException e){System.out.println("You can not get the export next run number properly");}
    return runnumber;
    i got error message like:
    java.lang.ClassCastException: java.math.BigDecimal
    As far as i knew, if the parameter is number or decimal, we should give also the paramer scale to the method: state.registerOutParameter(), but i still get this error message.
    Please help me to solve this problem.
    Thanks a lot.

    state.execute();
    i try to use debug to find the problem, in this line, i saw
    OracleCallableStatement(OraclePreparedStatement).execute() line: 642 [local variables unavailable]
    is this the problem?

  • How authentify a windows nt/2k user from java

    Hello, I'm trying to authentify windows 2000 users from a java program, the application have to run in a unix based system (solaris) or if it's necessary, in a windows 2000 machine, Help me please.
    Thanks for everything
    Guillermo Mora
    [email protected]

    Look at http://jcifs.samba.org/ -it's almost full implementation of microsoft SMB networking

  • Call Windows COM/DCOM objects from Java on Linux

    Hello, is it possible to call COM/DCOM objects running on Windows from Java on Linux machine? Thank you.

    I don't know anything about it but it looks like EZ JCom in conjunction with the included Remote Access Service does what you're after. It's not free though.
    http://www.ezjcom.com/

Maybe you are looking for

  • Insert silence in the wrong place

    I'm having a problem where, when I do Process > Insert > Silence, it puts the silence in a different place about 10 seconds behind where the cursor is. Any idea why this would be happening?

  • Where is the actual Lyrics file found...?

    Hi: Where can I find the actual lyrics files for my iTunes songs that are brought up after I have pasted them into the Lyrics section of the Get Info box? The lyrics appear in the box with no problem as does the artwork, but I would like to link othe

  • Ora 2309 - atomic NULL violation on SRID update

    Hi all, I'm trying to update an SRID value for a layer using: Update COUNTRY c set c.SHAPE.SDO_SRID = 8307; I get the following error : Error:     ORA 2309 Text:     atomic NULL violation The value of SRID is NULL. Why this doesn't work for COUNTRY ?

  • Illustrator CS5 crashing when trying to save (OS X Yosemite 10.10)

    Seriously annoying bug - when I try to save my work in a specific folder, it crashes. no warning. Does CS5 not work with OS X? There is no update available through the update link in Illustrator.

  • Error message; "Error occurred while scanning"

    My first attempt at  Scanning. I tried to scan a picture to email. I am controlling, wireless with a Sony Vaio laptop  running Windows 7.  I went through the setup and started a scan.  After a few moments I got the message " Error occurred While  Sca