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).
I just feel the need to ask this in my own words to understand, so from a purely technical point of view, I can extract the tools package out of the JRE Jar file and to Jar it in a different Jar file, where each class has its full path name, and to add it to the build path of my application?
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)
Isn't this remarkable, everything works perfectly(from a technical point of view of course), really appreciate all your help. all of you guys on all the threads I want to thank you all for all your help, So thank you.