Since Oracle stopped shipping src.zip inside of tools.zip on the release 45 of JDK 8, this tutorial will show you how to extract src.zip from JDK installer.
Visit this link to download the appropriate JDK for your Windows (32 or 64 bits), accepting Oracle’s license agreement.
Once you’ve downloaded the installer, execute it and wait until the welcome page is presented, don’t click on Next or not even close it:
Whilst you keep the welcome page opened, go to the C:\Users\\AppData\LocalLow\Oracle\Java, replacing <youruser>
by your current Windows’ user, for example C:\Users\bruno.gasparotto\AppData\LocalLow\Oracle, then you might see something like the following:
Go to the JDK folder then you might see the following files:
These files contains the following resources, pay attention to their prefixes to help you finding the right file on the next JDK releases:
Open the file ss180121.cab and copy the src.zip to a safe location, because the cab files are going to vanish when you close the installer.
Finally, with the src.zip file saved somewhere safe, close the installer you opened at the beginning of this tutorial.
For a guide on how to properly extract the JDK from the downloaded installer, please refer to:
Hope it helps. Cya!
This guide will show you how to create a Python function decorator with a few…
This guide will show you how to fix the error Got permission denied while trying…
This guide will show you how to create a Python virtual environment on Intellij IDEA…
This tutorial will quickly show you how to to find and kill processes on Linux,…
This guide shows a possible solution for Python error Relocation R_X86_64_PC32 against symbol can not…
I condensed below a cheat sheet of Kubernetes useful commands. I will keep updating this…
View Comments
Doesnt work anymore!
I have tested this up to JDK 8. Newer JDKs have been made available as zip again through Oracle's downloads page: https://www.oracle.com/java/technologies/downloads/
The src.zip file can be found inside of the bin folder.
Thats Nice!!
And how to do this with jdk 1.6?
:)
Many thanks!
Thanks.