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?
views:
1604answers:
4
+10
A:
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 compiler.
Also, there is nothing (that I am aware of) about the JDK install that you couldn't do with a copy of it from another machine. So get on a machine you can install the JDK on, install it, and then copy the files to a place on the machine that you lack the rights to and it should work.
TofuBeer
2009-03-09 04:03:38
This is so true.. I remember when my internet connection was still an expensive dial-up (which gives away my age...) I copied the jdk's bin dir from a friend on 1.44 diskettes! And of course it worked perfectly =8-)
Yuval
2009-03-09 05:05:12
Indeed, it worked perfectly for me. Thanks!
Leonardo
2009-03-09 06:28:15
+3
A:
You don't need to install JDK. Just copy it over from another machine, and set PATH to %jdk%/bin and JAVA_HOME to %jdk% (actually, only PATH is often enough). I do it all the time.
Vladimir Dyuzhev
2009-03-09 04:59:00