title: Execute Runnable Jar with args from JavaFx application
body: <p>I need to run executable jar from java fx application.
  I am trying with following code :</p>
  <pre><code>public void runJar() {
      try {
          //String serverIp = oRMIServer.getServerIP();
          String arg1 = &quot;\&quot;arg1\&quot;&quot;;
          String arg2 = &quot;\&quot;arg2\&quot;&quot;;
          String command = &quot;java -jar &quot;  + &quot;path/of/jar.jar &quot; + arg1 + &quot; &quot; + arg2;
          Runtime run = Runtime.getRuntime();
          Process proc = run.exec(command);
      } catch (Exception e) {
          System.out.println(&quot;Exception occured &quot;+e);
      }
  </code></pre>
  <p>Surprisingly its running in my eclipse if I am creating a new class and writing this code, but frm my Java FX application this code is not running at all. I am not able to see anything looks ike it got skipped.
  Can someone please help on how to execute java executable jar with args from Java FX application.</p>
  <p>Although I've used now</p>
  <pre><code>String command = &quot;cmd /c start \&quot;\&quot; \&quot;&quot; + classPath + &quot;\\jre\\bin\\javaw.exe\&quot; -jar \&quot;&quot; + classPath + &quot;\\jarName.jar\&quot; &quot; + runTimeArg1 + &quot; &quot; + runTimeArg2;
  
  Runtime run = Runtime.getRuntime();
  Process proc = run.exec(command);
  </code></pre>
  <p>After this also nothing is coming up. Please help!</p>