Where is the src.zip for JDK8u40?

你离开我真会死。 提交于 2019-11-28 08:17:35

Make sure the Source code is not disabled when downloading.

Then as you can see on the picture, selecting "Source Code" will tell you exactly where it is located.

Notice that I've downloaded the 32 bits version to make sure to reproduce the same use case as you.


Edit

As per your new edits and comments, it seems what you want to know now is why you don't see the installation wizards. I'm pretty sure this is due to old-set registry key.

Run the following command

reg query hklm\software\microsoft\windows\currentversion\installer\UserData\S-1-5-18\Products /f "java" /s | find "HKEY_LOCAL_MACHINE"

Now, navigate to each of the returned path browsing with regedit and delete their entire parent (the big hexa number).

Re-try the installation and I'm pretty sure you will see the wizard.


As for the sources, Oracle documentation specify how to download them in silent mode.

jdk.exe /s ADDLOCAL="SourceFeature"

This is the way I got the src folder from jdk-8u172-windows-x64.exe file without installing.

Step1: Download jdk-8u172-windows-x64.exe file (Java SE Development Kit 8u172) from oracle site

Step2: Extract it and navigate to the path: \jdk-8u172-windows-x64.rsrc\1033\JAVA_CAB9

Step3: Right click on file named "110" and extract it.

You will get the src.zip file.

It took me little while to figure this out. I hope it will help others.

Enjoy debugging Good Code!

matrixanomaly

I don't know why/where the src.zip is, but as an alternative, if all you want is the source and somehow the proposed method doesn't work for you, you could always pull directly from the JDK8u40 source tree.

You will need Mercurial instead of Git. This link talks about the hg clone command

Quoting from the OpenJDK Java.net site

The corresponding master forest jdk8u can be cloned using this command: hg clone http://hg.openjdk.java.net/jdk8u/jdk8u;cd jdk8u;sh get_source.sh .

In addition, the source code for the last release, 8u40, is available by cloning the 8u40 master forest : http://hg.openjdk.java.net/jdk8u/jdk8u40. The final build of that release was tagged as jdk8u40-b25.

There are differences between OpenJDK and Oracle's, though subtle

download JDK 8 from following link

http://www.oracle.com/technetwork/java/javase/jdk-8-readme-2095712.html

src.zip comes in-built with it

if you JDK installer silently skips installing the source. just open the control panel > programs an features and find Java. Right click on it and select change and then select the source (option) ;)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!