Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
263 views
in Technique[技术] by (71.8m points)

java - Where is the src.zip for JDK8u40?

I installed the JDK8u40, but only find the javafx-src.zip.

Where can I find the source code for JDK? The src.zip?

Below is what I get after installation:

And btw, I didn't see the installation wizard! This is quite strange.

enter image description here

ADD 1

Today I tried several Java installation packages. All are downloaded from Oracle official site.

  • jdk-6u45-windows-i586.exe
  • jdk-7u75-windows-i586.exe
  • jdk-8u20-windows-i586.exe
  • jdk-8u25-windows-i586.exe
  • jdk-8u31-windows-i586.exe
  • jdk-8u40-windows-i586.exe

Both 6u45 and 7u75 installed well on my box. I can see the install wizard. And the src.zip is installed.

But 8u25 ~ 8u40 all installed silently. And no src.zip file is installed because I have no chance to select it in the wizard.

I am not sure if this is my fault or someone at Oracle made a mistake.

As @SubOptimal commented, the /s option indicates a silent install. I am wondering if there's an option to force the GUI install wizard to open.

I am using Windows 7 Enterprise x64 Build 7601 SP1

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Make sure the Source code is not disabled when downloading.

enter image description here

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

enter image description here

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 hklmsoftwaremicrosoftwindowscurrentversioninstallerUserDataS-1-5-18Products /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"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...