Results 1 to 3 of 3
  1. #1
    Moncleared is offline Member
    Join Date
    Jan 2009
    Rep Power

    Smile Execute A program from a Program!

    Aside from using an I/O string command to execute another program from inside a currently running program, is there any other ways to do this?


  2. #2
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Rep Power


    If you want it to execute as anothe process, Runtime.getRuntime().exec("...the command to execute...");

    If you want it to run in the same process space, you can simply call the 'main' method of some class directly.

  3. #3
    jason_check is offline Member
    Join Date
    Feb 2009
    Rep Power


    exec will return a process and you can deal with the return messages
    View, validate and edit X9.37, X9.100-180 and UCD ICL files.

Similar Threads

  1. Execute the commands in Jsp Program
    By swetha_2008 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-17-2008, 07:04 AM
  2. Execute a jar command from a java program
    By apremanandh in forum New To Java
    Replies: 3
    Last Post: 05-21-2008, 03:04 PM
  3. Replies: 0
    Last Post: 04-04-2008, 03:40 PM
  4. Replies: 0
    Last Post: 10-04-2007, 10:33 PM
  5. Execute a new program in java
    By mathias in forum Advanced Java
    Replies: 1
    Last Post: 07-31-2007, 06:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts