<p>I have an application which <em>really</em> should be installed, but does work fine when deployed using JNLP.</p>

<p>However, it would seem that some Java functions such as <code>Runtime.exec</code> don't work using the default security options.</p>

<p>I would like to therefore <a href="http://www.joelonsoftware.com/items/2008/07/01.html" rel="nofollow noreferrer">disable</a> UI functionality that relies upon such functions.  </p>

<p>So my question is, <strong>how do I detect at runtime whether certain functions are available or not?</strong></p>

<p>The case study, here of course, is <code>Runtime.exec</code>.</p>

You want to ask to the
SecurityManager
if you have Exec right with the checkExec method.