Repack JDK installer to directory structure on Windows platform.


Currently Oracle distributing JDK for Windows platform only as *.exe installer. But there are several cases when you need to install java on your windows machine without touching registry and system variables. So, you can do this using following instruction:

  1. Download jdk (Windows x86/x64) as *.exe file.
  2. Create folder i.e. /jdk8 and move installer to that folder.
  3. Change installer extension to *.7z and unpack archive (for example using far manager)unpack_jdk.PNG
  4. Change dir to \.rsrc\1033\JAVA_CAB10cab10.PNG
  5. Run
    extrac32 111
  6. Unpack
  7. In cmd run (this will convert *.pack files to *.jar files)
    cd tools
     for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar"


  8. Now you can copy all content from current dir to c:\jdk8 and use this jdk without changing environment variables – for example, for running latest IntelliJ IDEA which is required jdk 1.8

Initial instruction taken from stackoverflow


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s