寻找适用于 Mac OS X 的 Java 二进制文件
我正在尝试在 mac os x 10.4.10 上运行的 mac mini 上从源代码构建 zimbra。
看来我需要一个像这样的文件“jdk-1_5_0_16-linux-i586.bin”,但我似乎找不到为 mac osx 制作的 jdk 二进制文件。
有人能指点我这个二进制文件吗?
以下是 zimbra 对二进制文件的处理方式:
sh jdk-1_5_0_15-linux-amd64.bin
tar czf jdk1.5.0_15.tgz jdk1.5.0_15
mv jdk1.5.0_15.tgz /opt/build.zimbra/source/FRANKLIN/ThirdPartyBuilds/x86_64/java/
如果我无法下载此文件,有没有办法从 java 安装中创建 tgz?
I'm trying to build zimbra from source on a mac mini running on mac os x 10.4.10.
It seems that I need a file like this "jdk-1_5_0_16-linux-i586.bin" but I can't seem to find a jdk binary that is made for mac osx.
Can anybody point me to this binary?
Here is what zimbra does with the binary:
sh jdk-1_5_0_15-linux-amd64.bin
tar czf jdk1.5.0_15.tgz jdk1.5.0_15
mv jdk1.5.0_15.tgz /opt/build.zimbra/source/FRANKLIN/ThirdPartyBuilds/x86_64/java/
If I cannot download this, Is there a way to create the tgz from an installation of java?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Java 是 Max OS X 安装的一部分。 Mac 版 JDK 由 Apple 维护,您无法在其他地方下载。
您应该已经有 JDK 1.5。 打开终端并尝试“java -version”和“which java”。
至于 Zimbra,他们的下载页面有 Mac 二进制文件。 它们应该“开箱即用”。 您确定需要从源代码构建吗?
Java is part of the Max OS X install. The JDK for Mac is maintained by Apple, and you cannot download it anywhere else.
You should have JDK 1.5 already. Open a terminal and try "java -version" and "which java".
As for Zimbra, their download page has Mac binaries. They should work "out of the box". Are you sure you need to build from source?
经过大量搜索后,我发现 JDK 存储在“/System/Library/Frameworks/JavaVM.framework/Versions”中,只需焦油即可,我得到了我需要的东西! 谢谢您的帮助。 这是 10.4 的,我不知道以前的版本还是最新版本。
After a lot of searching I was able to find that the JDK is stored in "/System/Library/Frameworks/JavaVM.framework/Versions" just tarred this and I got what I needed! Thanks for the help. this is for 10.4, I don't know with previous or the most current version.
sh jdk-1_5_0_15-linux-amd64.bin
正在运行一个 shell 脚本。 那个 shell 脚本里有什么? 你能读一下 shell 脚本并告诉我们它应该做什么吗? 我们只能从名字来猜测。 我的猜测是它安装了 1.5 jdk,你不需要这样做。 猜测sh jdk-1_5_0_15-linux-amd64.bin
is running a shell script. What is in that shell script? Can you read the shell script and tell us what it is supposed to do. We can only guess from the name. My guess is that it installs the 1.5 jdk which you don't need to do. But that is only a guess