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:
- Download jdk (Windows x86/x64) as *.exe file.
- Create folder i.e. /jdk8 and move installer to that folder.
- Change installer extension to *.7z and unpack archive (for example using far manager)
- Change dir to \.rsrc\1033\JAVA_CAB10
- Unpack tools.zip
- In cmd run (this will convert *.pack files to *.jar files)
for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar"
- 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