JDK8u40 的 src.zip 在哪里? [英] Where is the src.zip for JDK8u40?

查看:31
本文介绍了JDK8u40 的 src.zip 在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了JDK8u40,但只找到javafx-src.zip.

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

在哪里可以找到 JDK 的源代码?src.zip?

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

以下是我安装后得到的:

Below is what I get after installation:

顺便说一句,我没有看到安装向导!这很奇怪.

今天试了几个Java安装包.都是从Oracle官网下载的.

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

6u457u75 都很好地安装在我的盒子上.我可以看到安装向导.并且安装了 src.zip.

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

但是8u25 ~ 8u40 都是静默安装的.并且没有安装 src.zip 文件,因为我没有机会在向导中选择它.

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

我不确定这是我的错还是 Oracle 的某个人犯了错误.

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

正如@SubOptimal 所评论的,/s 选项表示静默安装.我想知道是否有选项可以强制打开 GUI 安装向导.

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.

我正在使用 Windows 7 Enterprise x64 Build 7601 SP1

推荐答案

确保源代码在下载时没有被禁用.

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.

请注意,我已经下载了 32 位版本,以确保重现与您相同的用例.

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

编辑

根据您的新编辑和评论,您现在想知道的是为什么看不到安装向导.我很确定这是由于旧设置的注册表项造成的.

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.

运行以下命令

reg query hklmsoftwaremicrosoftwindowscurrentversioninstallerUserDataS-1-5-18Products /f "java" /s | find "HKEY_LOCAL_MACHINE"

现在,使用 regedit 导航到每个返回的路径浏览并删除它们的整个父级(大六进制数).

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.

至于来源,Oracle 文档指定如何以静默模式下载它们.

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

jdk.exe /s ADDLOCAL="SourceFeature"

这篇关于JDK8u40 的 src.zip 在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆