1.5.x JDK源代码的位置
我在 Mac OS X 上安装了 Eclipse 3.3,但它不包含我在 Windows 和 Linux 安装中经常看到的 src.zip 文件。 哪里可以下载Java 1.5 JDK的完整源代码(必须是特定版本)。
我已经能够找到完整的源代码,但是它包含未生成的 Buffer 实现,因此无法导航 NIO 代码。
寻找通常在 JDK src.zip 中找到的 Java 源代码,而不是 VM 源代码。
I have installed Eclipse 3.3 on Mac OS X and it does not contain the src.zip file I am used to seeing with Windows and Linux installations. Where can I download the complete source code for the Java 1.5 JDK (must be specific versions).
I have been able to locate the full source code, however it contained the ungenerated Buffer implementations and so navigating NIO code was not possible.
Looking for the Java source typically found in the JDK src.zip, not the VM source.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(5)
您可以获取开发人员文档,其中包括源代码。 下载需要您拥有 ADC 帐户。
You can get the Developer Documentation, which includes the source. The download requires you to have an ADC account.
Brian Clapper 已经在评论中提到过,但从 Sun 下载的 JDK 包含 src.zip。 我不知道除了在目标平台上安装之外是否还有其他方法来获取它,但您可以将其安装在 Windows 或 Linux(虚拟)计算机上并从那里获取 src.zip。
特别针对 Java 1.5,下载地址为此处
[更新]< /强>
另外,Sun 还可以从 此处 获取 JDK 的源发行版。 看起来 SCSL 链接很混乱,让你陷入困境,但 JRL 仍然有效(如果你不介意通过它)。
Brian Clapper has already mentioned it in a comment, but the JDK downloads from Sun include src.zip. I don't know if there's any way to get it other than installing on a target platform, but you can install it on a Windows or Linux (virtual) machine and get src.zip from there.
Specifically for Java 1.5, the downloads are here
[Update]
Also, source distributions of the JDK are available from Sun from here. It seems that SCSL link is messed up and throws you for a loop, but JRL still works (if you don't mind going through it).
它位于
/System/Library/Frameworks/JavaVM.framework/Versions.1.5.0/Home/src.jar
我确实在 Mac 附带的安装盘上找到了安装的 XCode 东西,所以我不知道如果源代码出现在标准 Mac 安装的 OSX 上。
It is located in
/System/Library/Frameworks/JavaVM.framework/Versions.1.5.0/Home/src.jar
I do have the XCode stuff installed found on the installation disks that come with a Mac, so I don't know if the source code appears on a standard Mac installation of OSX.
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/src.jar
更多详细信息:
http://confluence.concord.org/display/CCTR/Get+local+copies+of+Mac+OS+X+Java+source+code+and+Javadoc
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/src.jar
More details on:
http://confluence.concord.org/display/CCTR/Get+local+copies+of+Mac+OS+X+Java+source+code+and+Javadoc
不清楚这是否可能,因为据我所知,Mac JDK 不是开源的。 它是由Apple 而不是Sun 创建的。
Unclear if that is even possible since the Mac JDK is not, to my knowledge, open source. It was created by Apple not Sun.