How can I compile Java code in Windows without installing the whole JDK?
问题 Let’s say the runtime environment (version 1.6.0_01-b06) is already in place, but since I lack administrative privileges in this particular PC, the JDK can’t be installed. So, is there any portable JDK or standalone Java compiler for Windows that doesn’t require installation? 回答1: You might try taking the tools.jar file from the JDK (you would have to copy it over from another machine) and see if that worked. javac is essentially a small exe that starts the VM with the specific class for the