- Create working JDK directory (
C:\JDKin this case) - Download latest version of JDK from oracle (for example
jdk-7u7-windows-i586.exe) - Download and install 7-zip (or download 7-zip portable version if you are not administrator)
- With 7-zip extract all the files from
jdk-[6-7]u?-windows-i586.exein directoryC:\JDK - In command shell (cmd.exe) do the following:
--> change directory to directoryC:\JDK\.rsrc\JAVA_CAB10
--> execute command:extrac32 111 - Unpack
C:\JDK\.rsrc\JAVA_CAB10\tools.zipwith 7-zip - In command shell (cmd.exe) do the following:
--> change directory toC:\JDK\.rsrc\JAVA_CAB10\tools\
--> execute command:
(this will convert all pack files into jar)for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar" - Copy whole directory and all subdir of
c:\JDK\.rsrc\JAVA_CAB10\toolswhere you want your JDK to be and setup manually JAVA_HOME and PATH to point to your JDK dir and its BIN subdir.