Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. [SOLVED] Re: Problem Multiple Commands and filepath or classpath.

    That says the program "cd" can't be found. Some commands are NOT programs but are part of the DOS environment defined by another program. Try some other commands. For example the "cmd" command.
    ...
  2. [SOLVED] Re: Problem Multiple Commands and filepath or classpath.

    For debugging its useful to print out the contents of the array that is passed to the exec() method.
    Something like: System.out.println("an ID "+ java.util.Arrays.toString(theArrayName));


    Are...
  3. [SOLVED] Re: Problem Multiple Commands and filepath or classpath.

    I don't know if the exec() method will execute more that one command. If you want to have multiple DOS commands executed with one call to the exec() method, look at using a batch file that contains...
  4. [SOLVED] Re: Problem Multiple Commands and filepath or classpath.

    This part of the error message tells you what it wrong. The runProcess() method takes a String.
    The code is trying to pass it a String[] array.

    The exec() method can take an array, so try...
Results 1 to 4 of 4