You can isolate some of the executables by trial and error and I have done this for the jps
and jcmd
tool for process checking for my application.
I've just quickly tried this for javac
and managed to get it compiling correctly but hopefully this isn't using some of my system variables.
You need a folder structure like
bin
-> javac.exe
-> jli.dll
lib
-> tools.jar
Place your code into the bin folder and run javac
Baring in mind what you will need for javac to run is operating system dependant and this was tested on Windows. You might need some extra files for other operating systems like Linux as this was one of the problems I encountered.