Installing JDK 7
-
Download Oracle Java SE JDK 7 In this example, we will use
jdk-7u80-windows-x64.exe -
Extract
jdk-7u80-windows-x64.exeusing 7-zip tool. Right click the file then select context menu 7-zip > Extract tojdk-7u80-windows-x64 -
Go to the directory
jdk-7u80-windows-x64/.rsrc/1033/JAVA_CAB10-
Step 1: Extract the file
111using 7-zip again, which will result atools.zipfile- Right click the file then select context menu 7-zip > Extract here
-
Step 2: Extract tools.zip using 7-zip tool again
- Right click the file then select context menu 7-zip > Extract to
tools
- Right click the file then select context menu 7-zip > Extract to
-
Step 3: Open
cmd.exeand cd intotoolsdirectory above, then run the following:for /r %i in (*.pack) do bin\unpack200 -r -v %i %~pi%~ni.jar
-
Or if you use Cygwin Bash, you can run this:
find . -name '*.pack' -type f -exec sh -c 'bin/unpack200 -r -v $0 ${0/.pack/.jar}' {} \;
-
Step 4: Copy
toolsfolder and rename it to%USERPROFILE%/apps/jdk-7u80- Optionally, if you want the JDK source code, following these instruction:
-
Step 1: Go to the directory Go to the directory
jdk-7u80-windows-x64/.rsrc/1033/JAVA_CAB9 -
Step 2: Extract the file
110, which containssrc.zip -
Step 3: Copy
src.zipinto%USERPROFILE%/apps/jdk-7u80
Refs: http://stackoverflow.com/questions/10891405/installing-jdk-without-administrator-privileges
Installing JDK 8
The JDK8 update 102 or higher has different file structure!
-
Use 7-zip to unpack
jdk-8u131-windows-x64.exe -
cd .rsrc/1033/JAVA_CAB10 -
Use 7-zip to unpack
111file and extracttools.zip -
Use same instructions as above to unpack
tools.zip
Java source src.zip is within the file 110 located inside .rsrc/1033/JAVA_CAB9.
Installing JDK 9
Staring JDK9, the OpenJDK provides binary tar ball (zipped) executable JDK package that can unpack in Windows in any directory. But if you still want Oracle Java SE JDK, then you still use above instruction to get around installing without admin rights.
Refs
https://stackoverflow.com/questions/10891405/installing-jdk-without-administrator-privileges