Automate program execution problem (Runtime.exec("java" + " Hello.java");

Discussion in 'Java' started by seenuvas, Jan 24, 2006.

  1. seenuvas

    seenuvas Guest

    I want to automate the program compilation and execution.

    I used Runtime.exec("javac" +" Hello.java"); for compilation the
    program compiled successfully.
    in the next liine i gave Runtime.exec("java" + "Hello"); This statement
    dosen't performs execution.

    Anybody knows tell me the solution for this problem

    By
    Seenu
    seenuvas, Jan 24, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. MARTIN Herve \(EXT\)
    Replies:
    1
    Views:
    1,459
    Anthony Borla
    Nov 27, 2003
  2. Dave
    Replies:
    2
    Views:
    608
    Tony Morris
    Oct 2, 2004
  3. seenuvas
    Replies:
    7
    Views:
    2,658
    Roedy Green
    Jan 24, 2006
  4. Hal Vaughan
    Replies:
    11
    Views:
    1,107
    Gordon Beaton
    May 22, 2006
  5. Replies:
    12
    Views:
    4,964
    Roedy Green
    Apr 19, 2009
Loading...

Share This Page