JDK-8190409 : ProcessBuilder does not handle the spaces in the arguments
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 8u40
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2017-10-31
  • Updated: 2018-09-12
  • Resolved: 2018-09-12
Related Reports
Relates :  
Description
ProcessBuilder API fails to handle the parameters if it contains space in it. 

For Example, 
ProcessBuilder procObj=new ProcessBuilder("ant -v -f build.xml");


Comments
The ProcessBuilder(String...) method accepts only individual arguments; it does not parse the string as does Runtime.exec(String).
12-09-2018

Similar Issue : https://bugs.openjdk.java.net/browse/JDK-7177083
31-10-2017