1.5.x JDK源代码的位置

发布于 2024-07-11 09:23:57 字数 247 浏览 7 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

写给空气的情书 2024-07-18 09:23:57

您可以获取开发人员文档,其中包括源代码。 下载需要您拥有 ADC 帐户。

You can get the Developer Documentation, which includes the source. The download requires you to have an ADC account.

我三岁 2024-07-18 09:23:57

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).

刘备忘录 2024-07-18 09:23:57

它位于

/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.

挽你眉间 2024-07-18 09:23:57

/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

黎夕旧梦 2024-07-18 09:23:57

不清楚这是否可能,因为据我所知,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文