Creating a pre installed JDK in Zip package, Follow these steps:
- Download Latest Jdk executable from Oracle.com
- extract all the files from
jdk-8u172-windows-x64.exeinto the directory( any destination dir)
Eg: C:\JDK - Execute the following commands in
cmd.exe:cd C:\JDK\.rsrc\1033\JAVA_CAB10extrac32 111
- Unpack
C:\JDK\.rsrc\1033\JAVA_CAB10\tools.zipwith 7-zip - Execute the following commands in
cmd.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.packfiles into.jarfiles)
- Copy all contents of
C:\JDK\.rsrc\1033\JAVA_CAB10\toolswhere you want your JDK to be