I like to be sure that everything will work just by copying the contents of the Java folder and setting the environment variables.
I usually run the installer in a virtual machine, zip the \java folder contents, go back to a snapshot of the virtual machine, and then unzip the compressed file.
I couldn't find a place where the latest JRE / JDK is available as a zip file...
http://java.sun.com/javase/downloads/index.jsp
http://download.java.net/jdk6/
Alternately, is it safe to assume that exe installer from sun just will just unzip the whole thing, without messing around with the registry, environment variables, etc...?
-- After all this time I found this site that seems to be exactly what I was looking for (2018-05-22)
JDK is not available as a portable ZIP file, unfortunately. However, you can follow these steps:
C:\JDK
in this case)jdk-7u7-windows-x64.exe
)jdk-XuXX-windows-x64.exe
into the directory C:\JDK
cmd.exe
:
cd C:\JDK\.rsrc\1033\JAVA_CAB10
extrac32 111
C:\JDK\.rsrc\1033\JAVA_CAB10\tools.zip
with 7-zipcmd.exe
:
cd C:\JDK\.rsrc\1033\JAVA_CAB10\tools\
for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar"
(this will convert all .pack
files into .jar
files)C:\JDK\.rsrc\1033\JAVA_CAB10\tools
where you want your JDK to beJAVA_HOME
and PATH
manually to point to your JDK dir and its BIN subdirectory.