Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?ISO-8859-1?Q?Sven_K=F6hler?= Newsgroups: comp.lang.java.programmer Subject: Re: exec problem is JDK 1.7.0_21 Date: Sun, 21 Apr 2013 00:25:17 +0300 Lines: 20 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.dfncis.de /+Vmoft8jQixmQsN2ay7OAkETJjQtqJ1YZr18X+kj7Y5dLd6HSQ1X5FHR0 Cancel-Lock: sha1:3St+BdJZIYwVil5tFJMjss2PyGc= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:23539 Am 20.04.2013 21:01, schrieb markspace: > On 4/20/2013 9:34 AM, Sven Köhler wrote: >> Am 20.04.2013 19:24, schrieb markspace: >>> Which is correct, because if you wanted two separate arguments >> >> Well, you should have read the part of the documentation I quoted. >> Windows is one of the operating systems, where programs tokenize the >> command line parameters by themselves - in which case the array passed >> to the ProcessBuilder should contain exactly two elements. q.e.d. > > Uh, but the ProcessBuilder is obviously preventing tokenization by > putting quotes around the argument, because you only used one parameter.... How would you propose to pass two arguments to a program on Windows, if the documentation clearly states, that one should pass an array with exactly two elements to the ProcessBuilder constructor? Regards, Sven