title: How to run a jnlp file with Java?
body: <p>I have a JNLP file, normally I will execute with console (Linux) and works perfect.</p>
  
  <pre><code>javaws launch.jnlp 
  </code></pre>
  
  <p>But now I have to run from Java code, I tried this...</p>
  
  <pre><code>Process p = Runtime.getRuntime().exec(new String[]{"path/to/.jnlp"});
  p.waitFor();
  </code></pre>
  
  <p>Not working, as it should run.</p>