How to execute a windows program

hi,
I want to know how to launch IE or netscape browser from a java application.
Thank you.

Hi,
you can do it this way.
java.lang.Runtime.getRuntime().exec("cmd /c start iexplore c:/McCommissionReport.html");//for running on windows2000
java.lang.Runtime.getRuntime().exec(" start iexplore C:/Report.html");//for running on windows95 and nt
--sitas                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How to execute a Window program from Unix box using Java

    I am trying to execut a program running on a Window box from Shell Script on a Unix box. Does anybody knows how to do that using Java. Thanks. Any feedback appreciated.
    kevin

    You need to use
    String fileNane = "setup.exe";
    Runtime.getRuntime().exec(fileName);that is if you are writing code
    if you are just calling if from a terminal just write
    java then the file name ( well I think that is right :)
    I do know that the code above work as I have it working on a windoze box
    Craig
    Hope this is right if not please let me know

  • How to execute a Print program, if it is an INclude program?

    Hello,
    Very Good evening!
    How to execute a Print program of a samrt form..if it is an INclude program...?
    And, There is a T-code to debugg Smart form...It should be something SSFTRACE.....Please correct me...If you know the correct T code.
    Regards,
    Kittu

    Everything is done ..It is configured in NAce with the appropriate Output type....
    I had types ME23n, Me22N and cheked with the value....It is displaying the PO values...But, in print privew it is not displaying it ...It just display's the big white sheet.
    For this reason I need to check with the parameter values of Function module which is used in INclude progeram....I set Break points at the Function Module....Now, please tell me how can I chk the values of teh parameters. As, it is an Include program it will not let me switch on the debugger.... So, is there any other way that i can debugg them by setting break points?
    PLease help....
    Thank you,
    Kittu

  • How do you convert windows programs to imac

    how do you convert windows program downloads to your imac

    You need to use a tool which enables them to be run on the iMac, such as CrossOver Mac, VirtualBox, or Boot Camp.
    (66074)

  • How to execute a DOS PROGRAM as batch file  in java

    How to execute a DOS PROGRAM as batch file in java
    pls help me

    www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How to execute a java program by clicking !?!?

    Just a click to execute a java program?!!
    Like the ".exe" in Windows or "x" permission in Unix ?!?!?!
    How can I do that?
    And how to set a java program file to display as a personal icon? (My Icon)
    :-)

    Well this is what I do in Windows (I use XP but it works in others):
    First you have to make sure all the class files are in the same folder (duh)
    Then you copy your java.exe from your jre folder into the folder with all your class files.
    Finally, you create a shortcut to java.exe and add your class name to the command line on the shortcut.
    Now all you have to do is double click on the shortcut and your program runs. Sure it's not that pretty but it works.

  • How do I run Windows programs on my iMac and my MiniMac?

    I have a new iMac and a new MiniMac at the office. Can I run Windows programs on these computers, such as QuickBooks? If so, how do I do it?

    If you want to run MS Windows applications on your iMac and Mac Mini you need a license of MS Windows at a minimum. Then you need to decide how you want to run the apps, you can use Boot Camp which allows you to install MS Windows on your computer and then boot your computer as either a MS Windows machine or OS X machine. The advantage of this is there is no cost (except for MS Windows) as Boot Camp comes with every Mac. You will find Boot Camp Setup Assistant in (Applications - Utilities - Boot Camp Setup Assistant). The other solution is virtualization software such as Parallels or VM Ware Fusion. The advantage of virtualization software is you can run MS Windows and OS X simultaneously. This is ideal if you are not doing graphics intensive applications such as 3D gaming, CAD/CAM or 3D renderings. For applications like QuickBooks it would be great.
    The downside of running MS Windows on your Mac is that portion of the computer will be susceptible to all the problems PC's have such as Virus's and other malware. So whatever solution you get you need to also get anti-virus software and other anti-malware. The upside is if Windows becomes diseased this in no way affects OS X.
    Finally your best solution is to look for OS X versions of your applications. I know there is a OS X version of QuickBooks however I have no idea how Intuit's licensing works, you would need to contact Intuit to ask that question.
    Roger

  • How do i run windows programs on mac

    How do i run a windows program on my mac? Is there a particular application for it? or do i need to download and install a virtual windows software? - if so, can anyone suggest any names for software. I've heard about virtual box.

    Why ask here instead of the ones for Macbook series, or for Windows on Mac, aka Boot Camp.
    VirtualBos is just the VM free for running Windows as guest OS under Mac OS, and then why exclude what or type program? Maybe game that needs to run natively, or that your notebook would have troubke with disk spa e, RAM, or your processor.
    Windows runs hotter, too, so that is another concern.
    Mire Q's than answers.

  • How to execute a Perl program from within a Java prog

    How do I execute a Perl program from within a Java program.
    Lets say the Perl program that I want to execute is 'abc'. Now, 'abc' requires some input that I want to give it from within the Java program. How do I do it?
    And finally, how do I execute that Perl program from within the Java program.
    If I execute the Perl program alone then I do it in the following way -
    perl abc inp1 inp2 inp3
    where inp1, inp2, inp3 are inputs to the Perl program. I will not be able to change or modify the coding of the Perl program - 'abc' as I do not have access to its code. Its a kind of an application whose usual method of execution is in the above shown way. So, how do I execute 'abc' from within a Java program.

    what part of don't crosspost, don't you understand?
    http://forum.java.sun.com/thread.jsp?forum=4&thread=427193

  • How to execute a reload program in SARA (adk's)

    hi folks,
               i have created a buisness object in T-code AOBJ. i have assigned write, delete and reload program to it. when i open t-code SARA and give my buisness object there i am able to see write and delete option there. i can execute my write and delete programs from SARA. how can i execute my reload program. ?? are reload program not executed by t-code SARA??? replies will be appreciated.
    regards,
    sudhir

    Hi Sudhir,
    Try this: In SARA, Choose menu Goto ->Reload.
    By the way, just a word of caution, it is not recommended to reload archived data as it may cause inconsistencies. so please use it with care.
    If your requirement is just to read the archive data, please make use of read programs based on ADK / Archive information system.
    Hope this helps,
    Naveen

  • How to execute a Java program from ODI

    Hi All,
    I am new to ODI. I would like to know whether its possible to execute a java program from ODI.
    Reason for this is, I would like to write information in error tables into a file. And after that another program will mail that error log to concerned person.
    Could anyone please help me with this?
    Thank you in advance
    Regards,
    Srini

    if you have the java code then u can create a procedure with Java BeanShell as the Technology and write your java code in the procedure

  • Execute a Window program from Unix box using Java

    Hello everyone,
    I need to call a application running on a Window box from Shell Script on a Unix box. Does any one have some idea how to do it? Sample codes? I was thinking using Java. Any feedback appreciated.
    Thanks.
    CrossonKevin

    Search
    Profit
    http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=Java+Programming&qp=forum%3A31&qt=execute+program

  • How to close other Windows Programs from a Swing GUI ?

    I am making this really simple login program that once a user has successfully entered a username and password, and this is checked through a mySQL database , I run an Internet Explorer Windows.
    Now I am trying to setup a logout button and when they push this button ideally the open Internet Exlporer Windows would close.
    Does anyone have an idea how to do this is Swing or the wider java language or maybe even something built into windows ?
    S.

    It's as simple as obtaining references to the Windows and calling dispose() on them. How you obtain the references is entirely up to you. For example, you can create a List to hold all the children windows/dialogs that are created. And on logout you iterate through the list, dispose the child windows, and remove them from the list. Or maybe the child windows can add themselves as listeners to the logout button. When it's clicked and an ActionEvent is fired, the child windows can dispose of themselves automatically.

  • How to execute the first program without using SUBMIT and RETURN

    Hi Experts,
    My requirement is , I need to select thet value from VA02 at runtime and need to pass that value to VF01 transaction and press save then it creates proforma document.The created document we can see in VA02 by clicking on document flow.
    My program is processed through OUTPUT TYPE.
    To get this functionality i written coding like this.
    1) i am selecting the value at runtime from VA02  using FORM ROUTINE.Now iam passing this selected value to VF01 for
    genarate proforma document using BDC.Here the problem is,first time when i am selecting the value form VA02 at runtime it is in open status,now my BDC code need to update the value in VA02 only.so locking problem occurres  the document is not getting updated.
    To overcome this problem i have done changes like this......
    2) i splited my program into two parts, that  is into two programs.
    a) In first program i am only selecting the value form VA02 at runtime using FORM ROUTINE and in this program i have written SUBMIT statement to call another program there my BDC  code will create documet and update in VA02,upto here everything is doing fine,
         But here again the problem is when i process OUTPUT type my program is triggering and giving correct result but the status is not changing form YELLOW to GREEN.Why means when SUBMIT statement trigger, control is going to second program and creating a new document,but not coming to first program so the status is not changing as the first prohram is still processing. .If i write RETURN along with SUBMIT the VA02 is in open STATUS only, till control comes to first program.so it will not uodate document in VA02.
    If i execute all line in my program status will automatically change from YELLOW to GREEN how to acheive this
    please suggest me the solution.

    I would do 2 things:
    1) be sure to do a COMMIT WORK AND WAIT
    2) refresh your display in calling program
    the point 2) can be done by submitting the program again (or the transaction) with the same parameters

  • How to execute a java program in linux ternimal shell??

    currently i have write a simple culculation program, i want to know how do i can execute it in LINUX ternimal shell??? rigth now i only can execute it in JAVA program...

    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/unix.html

Maybe you are looking for

  • Apple tv shows flashing white question mark on screen. What is this?

    Apple tv screen has white flashing question mark, what do I do?

  • Nevada: SOL & Old Charge Off

    Hey all, and pardon me in advance for my ignorance. Long long time lurker, minimal poster. I have a U.S. Bank C/O which was charged off in 12/2011. On myfico it only shows my payment history back to 1/2010, in which it hasn't been paid. I left US BAN

  • Question about creating objects

    Around the web and in a few books I have seen code similar to this: List records = new ArrayList(); My question is, why is "List" used instead of "ArrayList"?? So the code would like so: ArrayList records = new ArrayList(); What are the benefit(s) of

  • Updating customer master data after invocing

    Hello Gurus,                    Is there any procedure that after the customer is INVOICED or after the completion of billing the customer master data field needs to be updated. Thanks in advance sameer

  • MAX Cursor issue

    We try to write a browser script which reads an excel sheet and sends information to a business service which in turn creates record in Siebel (Agreement Items, Price List Lines, etc). The program runs for about 200 records and gives us Max Cursor Ex