Checking for execute permission with Java 1.5
<p>I'm looking for a way to check if a file is executable with Java 1.5.</p>

<p>I found <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/SecurityManager.html#checkExec%28java.lang.String%29" rel="nofollow">SecurityManager.checkExec</a> but I don't think it helps...</p>

<p>I'm currently on Linux, but this needs to work for Windows also.</p>

<p>Any help would be appreciated, Thanks.</p>
