Thanks for the hint Danny. I didn't know about that function... but I'm sorry to say that <div><br></div><div>> (find-executable-path "java.exe")</div><div>#f</div><div><br></div><div>whereas from cmd:</div>
<div>> where java</div><div>C:\Windows\System32\java.exe</div><div><br></div><div>so the command line knows about it, and I can use it, but it is concealed from Racket, even via find-executable-path. That's probably a more concise statement of my problem!</div>
<div><br></div><div>- T</div><div><br></div><div><div class="gmail_quote">On Thu, Dec 6, 2012 at 6:15 PM, Danny Yoo <span dir="ltr"><<a href="mailto:dyoo@hashcollision.org" target="_blank">dyoo@hashcollision.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><div class="gmail_quote"><div class="im"><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><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))" target="_blank">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>
</blockquote></div><br></div>