Skip to content

Instantly share code, notes, and snippets.

@anatol-grabowski
Created April 23, 2017 15:28
Show Gist options
  • Save anatol-grabowski/402a4acf63f81ba754b26e2dce1b16a3 to your computer and use it in GitHub Desktop.
Save anatol-grabowski/402a4acf63f81ba754b26e2dce1b16a3 to your computer and use it in GitHub Desktop.
@echo off
set "tool7z=%TOT_CORE%\7-Zip\7z"
set "jdk_exe=%1"
echo Extracting '.rsrc/1033/JAVA_CAB10/111'
%tool7z% e %jdk_exe% .rsrc/1033/JAVA_CAB10/111
:: %tool7z% e %jdk_exe% .rsrc/1033/version.txt
echo Extracting '111'
extrac32 111
echo Removing '111'
del 111
echo Extracting 'tools.zip'
%tool7z% x tools.zip -ojdk
echo Removing 'tools.zip'
del tools.zip
echo Extracting '*.pack'
cd jdk
for /r %%x in (*.pack) do .\bin\unpack200 -r "%%x" "%%~dx%%~px%%~nx.jar"
cd ..
echo Done.
@axel3rd
Copy link

axel3rd commented May 11, 2017

Hello,

FYI, for Java 8 update 131, the 111 file is in (second archive) jdk-8u131-windows-x64.exe/.rsrc/RCDATA/100/.rsrc/1033/JAVA_CAB10/111
In addition, the JAVA_CAB9/110 file = src.zip could be a good idea to include (at root path) for a SDK.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment