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

    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?

    Thanks

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

    Default

    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
    Posts
    10
    Rep Power
    0

    Default

    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.
    http://www.digertech.com

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, 06: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, 02:04 PM
  3. Replies: 0
    Last Post: 04-04-2008, 02:40 PM
  4. Replies: 0
    Last Post: 10-04-2007, 09:33 PM
  5. Execute a new program in java
    By mathias in forum Advanced Java
    Replies: 1
    Last Post: 07-31-2007, 05: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
  •