This content has been marked as final. Show 4 replies
tools.jar, which contains the compiler and other development tools, does not ship with the JRE. that is why you can't find a System compiler.
I am not sure about licensing concerns, but from a purely technical point of view, you would need to deploy tools.jar from a JDK) to each JRE, or as part of your app, in an appropriate place (of which there are probably around a handful of different ways that would all work).
from a purely technical point of view, on my windows box (as an example)
C:\Program Files\Java\jdk1.6.0_18\lib contains a file tools.jar
to run with a jre
copy that tools.jar to (for example)
the the jre will be able to find the compiler (which is in tools.jar)