title: Java web start fails to launch with "Invalid argument exception"
body: <p>I am working on some application that must start another app using Java web start. The way it is designed is like this : </p>
  
  <pre><code> String commandArg = new String(
      "http://143.56.56.56:8088/configuratorhome/controller?configurationid=1222222222222222222222222222222222222222222222222222222222222c&amp;versionstamp=21593&amp;location=England&amp;applicationlocale=en_US&amp;qo_productid=6178&amp;offline=false&amp;configurationtype=normal&amp;project_name=Devgen+Seeds&amp;customer_no=AAA+MYCompany+Heid+Angebote+09&amp;project_no=A09%2F0356&amp;user_initials=JEJ&amp;group_name=CHD&amp;customer_name=AAA+MYCompany++Heid+Angebote+09&amp;conf_access_right=udv_server&amp;project_contact_name=&amp;product_next_version_no=2&amp;product_version_no=1&amp;product_locale=England&amp;user_name=Jens+Jakobsen&amp;header_phone=5555+55556+5555&amp;header_zipcode=A-79000&amp;header_mail=heid%40cimbria.com&amp;header_fax=-&amp;header_address2=-&amp;header_town=Stockerau&amp;header_country=Austria&amp;header_name=Mycomp+Heid+GmbH&amp;header_address1=Heid-Werkstrasse+4&amp;");
  
      String[] command = new String[] { "javaws", "\"" + commandArg + "\"" };
       // Runtime.getRuntime().exec(command);
      Process proc = new ProcessBuilder(command).start();
  </code></pre>
  
  <p>When I run this app I get the following exception :</p>
  
  <pre><code>InvalidArgumentException[ Invalid arguments supplied: { }]  
   at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
   at com.sun.javaws.Main$1.run(Unknown Source) 
   at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>But it actually depends on how do I run it. If I use Java 6 64bit from command line it fails as mentioned. But from inside eclipse works fine without throwing the exception. When I run it from a PC with Java6 32 bit fails anyway. </p>
  
  <p>Secondly if I make the command argument smaller it works. Therefore depending on the length of the command I get the exception or not. But in Eclipse it works no matter of the length of the command. </p>
  
  <p>I can't understand why this behavior? </p>