Firstly, thanks for the question. I did not know about this utility and always used external tools such as DJ or JAD for decompilation.
Secondly, I do not think that you have an easy way. I am afraid that you need to create your own platform-specific mechanism that the JDK finds. Use registry for windows and command line, for example
ls /bin/java*/bin/javac* | tail -1
on unix.
source
share