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.