You could pull it out of the registry. Using regedit, I can see the registry entry that points to perl.exe on my system, so if you could get into the registry getting the location of perl.exe would be easy. I'm not sure how to access the registry from java. You might have to use JNI.
There's nothing more dangerous than a resourceful idiot. ---Dilbert
Joined: Jan 09, 2001
Thnk you. But I found work around. The perl scripts are part of the bigger application. I have config file for it already. So I added PATH variable to it and created class that searches for a file with in the PATH. PATH=c:/windows;f:/stuff;c:/Perl/
File = FindFile.get("perl.exe"); the return is File() or null. Works fine. Yarik.