<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>One of my Racket projects scans the PATH directories to locate</div><div>the Java executable, if one is installed.</div>
</div></blockquote><div><br></div><div>If you're searching through PATHt, you should be able to use find-executable-path.</div><div><br></div><div><a href="http://docs.racket-lang.org/reference/Filesystem.html#(def._((lib._racket/private/misc..rkt)._find-executable-path))">http://docs.racket-lang.org/reference/Filesystem.html#(def._((lib._racket/private/misc..rkt)._find-executable-path))</a></div>
<div><br></div><div><br></div><div>For example:</div><div><br></div><div> (find-executable-path "java.exe")</div><div><br></div></div>