Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.10 seconds.

  1. Replies
    11
    Views
    1,522

    Re: Why runtime error?

    Again, what is the error? Have you tried using a ProcessBuilder?
  2. Replies
    11
    Views
    1,522

    Re: Why runtime error?

    I would use a ProcessBuilder if I were you.

    And you need to separate your arguments. Instead of exec("top -n1") it would be exec("top", "-n1");
  3. Replies
    11
    Views
    1,522

    Re: Why runtime error?

    What output are you expecting?
  4. Replies
    11
    Views
    1,522

    Re: Why runtime error?

    That error tells you that the Process hasn't exited. Your code waits for the first process to exit, but not the second one.
  5. Replies
    11
    Views
    1,522

    Re: Why runtime error?

    Can you tell us what the error is?
Results 1 to 5 of 5