Results 1 to 3 of 3
  1. #1
    JHumphr is offline Member
    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    Post Execute .jar file within java program?

    I've tried:
    Process process = Runtime.getRuntime().exec("java -jar jarFile.jar");
    but that doesn't work.
    Does anyone have any simple code that would do this?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default

    You seemingly abandoned your last thread
    Okay forum, help me out with this GUI please?

    Why should we expect anything different here?

    db

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,570
    Rep Power
    25

    Default

    but that doesn't work.
    Please explain.
    Capture all the output from the execution and print it here.

Similar Threads

  1. Replies: 9
    Last Post: 11-19-2009, 04:31 PM
  2. Execute external file/program
    By sirwiggles in forum New To Java
    Replies: 3
    Last Post: 04-21-2009, 11:35 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

Tags for this Thread

Posting Permissions

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