带有 Mac OS X 10.4 的 Mac PowerPC 上的 Java 6

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/613175/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 16:52:31  来源:igfitidea点击:

Java 6 on Mac PowerPC with Mac OS X 10.4

javamacos

提问by toobstar

Is it possible to get Java 6 running on a Mac PowerPC with Mac OS X 10.4? AFAIK SoyLatteis only available for Intel processors.

是否可以在装有 Mac OS X 10.4 的 Mac PowerPC 上运行 Java 6?AFAIK SoyLatte仅适用于英特尔处理器。

采纳答案by Jared Oberhaus

Note that in addition to not working on PPC, Apple's Java6 does not work on 32 bit Inteleither. And there are other restrictions for the new Java6, leading to opinions such as this.

请注意,除了不能在 PPC 上运行之外,Apple 的 Java6也不能在 32 位 Intel上运行。而且还有如其他限制新的Java6,导致意见

回答by Jarret Hardie

Someone yesterday recommended SoyLatte for PPC (Installing Java 6 on Mac OS), and in fact these instructions seem to support his theory (read the comments where someone claims it works on his PPC): http://blog.adsdevshop.com/2008/02/26/installing-the-jdk-16-on-mac-os-x/

昨天有人推荐 SoyLatte 用于 PPC(在 Mac OS 上安装 Java 6),事实上这些说明似乎支持他的理论(阅读有人声称它适用于他的 PPC 的评论):http: //blog.adsdevshop.com/2008 /02/26/installing-the-jdk-16-on-mac-os-x/

YMMV :-) Or try building from source. Again, YMMV :-)

YMMV :-) 或者尝试从源代码构建。再次,YMMV :-)

回答by Thorbj?rn Ravn Andersen

The only Java 6 for PowerPC I have seen is for Linux:

我见过的唯一用于 PowerPC 的 Java 6 是用于 Linux:

http://www.ibm.com/developerworks/java/jdk/linux/download.html

http://www.ibm.com/developerworks/java/jdk/linux/download.html

I am afraid you will have to stay with Java 5 on Mac OS X on PowerPC.

恐怕您将不得不在 PowerPC 上的 Mac OS X 上继续使用 Java 5。

回答by forableng

As of December 2009, a beta of OpenJDK 7 for OS X 10.5 PPC is available at http://landonf.bikemonkey.org/static/soylatte/-- haven't tried it, and it's not quite what you were after, but it's the first I've seen so far of Java >=6 on any PPC OS X version! More details at http://landonf.bikemonkey.org/2009/12/index.html.

截至 2009 年 12 月,用于 OS X 10.5 PPC 的 OpenJDK 7 测试版可在http://landonf.bikemonkey.org/static/soylatte/ 获得——还没有尝试过,它并不是你想要的,但是这是迄今为止我在任何 PPC OS X 版本上看到的第一个 Java >=6!更多详情请访问http://landonf.bikemonkey.org/2009/12/index.html

回答by testuser

There is one out there that works and runs on ppc tiger:

有一个可以在 ppc 老虎上运行和运行:

  1. get the .dmg and install it
  2. su root; cd /System/Library/Frameworks/JavaVM.framework/Versions; ls
  3. make sure you see '1.6 -> 1.6.0' CurrentJDK -> 1.5
  4. rm CurrentJDK (removes symbolic link, not the jdk)
  5. ln -s 1.6 CurrentJDK
  6. java -version
  1. 获取 .dmg 并安装它
  2. 苏根; cd /System/Library/Frameworks/JavaVM.framework/Versions; ls
  3. 确保你看到 '1.6 -> 1.6.0' CurrentJDK -> 1.5
  4. rm CurrentJDK(删除符号链接,而不是 jdk)
  5. ln -s 1.6 当前JDK
  6. 版本

java version "1.6.0-dp" Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34) Java HotSpot(TM) Core VM (build 1.6.0-b88-17-release, interpreted mode, sharing)

java 版本“1.6.0-dp”Java(TM) SE 运行时环境(构建 1.6.0-dp-b88-34)Java HotSpot(TM) 核心 VM(构建 1.6.0-b88-17-release,解释模式,分享)

Don't know where the package was downloaded from.

不知道包是从哪里下载的。

回答by Matthias Jakob

yes there is a 1.6 Version for PPC coming from the 10.4 Developer preview.

是的,有来自 10.4 开发人员预览版的 PPC 1.6 版本。

http://images.spelpunt.nl/javase6release1dp6.dmg

http://images.spelpunt.nl/javase6release1dp6.dmg

You can't install it via installer but go to /Volumes/Java\ SE\ 6\ Release\ 1/JavaSE6Release1.pkg/ and copy Archive.pax.gz to your Desktop; gzip -d Archive.pax.gz and then pax or double click on Archive.pax.

您无法通过安装程序安装它,而是转到 /Volumes/Java\ SE\ 6\ Release\ 1/JavaSE6Release1.pkg/ 并将 Archive.pax.gz 复制到您的桌面;gzip -d Archive.pax.gz 然后 pax 或双击 Archive.pax。

Now there is the package content. Under /Your Desktop/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin you can find a PPC 1.6 JDK ;-) beta but an working 1.6 JDK.

现在有包内容。在 /Your Desktop/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin 下,您可以找到 PPC 1.6 JDK ;-) 测试版,但可以使用 1.6 JDK。

Copy 1.6.0 to /System/Library/Frameworks/JavaVM.framework/Version .. run /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java

将 1.6.0 复制到 /System/Library/Frameworks/JavaVM.framework/Version .. 运行 /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java

Thats it ...

就是这样 ...

回答by Sunil Manheri

For my surprise I had Java 1.5 in 10.4.6, just followed the steps given in the link to make it the default JRE: Java 1.5 in 10.4.6

令我惊讶的是,我在 10.4.6 中有 Java 1.5,只需按照链接中给出的步骤将其设为默认 JRE:Java 1.5 in 10.4.6

回答by Love Mac

回答by Cano

If some is still searching for the answer, I have the solution, I took it from Mac Insights:

如果有人仍在寻找答案,我有解决方案,我是从 Mac Insights 中获取的:

Java 1.6 on Tiger, on PowerPC or Intel

Java 1.6 on Tiger、PowerPC 或 Intel

Installer: https://hell.meiert.org/core/dmg/java-6-dp.dmg

安装程序:https: //hell.meiert.org/core/dmg/java-6-dp.dmg

If you run the installer on a fully updated Tiger system, it'll inform you that “This volume contains a newer version of Java.” So, first move aside the files it's checking.

如果您在完全更新的 Tiger 系统上运行安装程序,它会通知您“此卷包含更新版本的 Java”。所以,首先把它检查的文件放在一边。

sudo mv /System/Library/Frameworks/JavaVM.framework/Resources/Info-macos.plist{,.old} sudo mv /System/Library/Frameworks/JavaVM.framework/Resources/version.plist{,.old}

sudo mv /System/Library/Frameworks/JavaVM.framework/Resources/Info-macos.plist{,.old} sudo mv /System/Library/Frameworks/JavaVM.framework/Resources/version.plist{,.old}

After running the installer, open the new “Java Preferences” in /Applications/Utilities/Java/Java SE 6. Set “Use version” to “Java SE 6” and reorder the list in “Java Application Runtime Settings” so “Java SE 6” is first. After you click “Save” and quit, confirm that Java 6 is active by running java -version.

运行安装程序后,在 /Applications/Utilities/Java/Java SE 6 中打开新的“Java Preferences”。将“Use version”设置为“Java SE 6”并重新排序“Java Application Runtime Settings”中的列表,以便“Java SE 6”是第一。单击“保存”并退出后,通过运行 java -version 确认 Java 6 处于活动状态。

Done.

完毕。

Source: https://ericfromcanada.github.io/output/2018/java-6-tiger-leopard.html

来源:https: //ericfromcanada.github.io/output/2018/java-6-tiger-leopard.html