1.7 on a PPC box

Mike Swingler swingler at apple.com
Tue Jul 5 15:31:02 PDT 2011


On Jul 4, 2011, at 4:44 AM, Drechsel Wolf wrote:

> Hi everybody,
> 
> I installed
> 
> http://landonf.bikemonkey.org/static/soylatte/bsd-dist/openjdk7_darwin/openjdk7-macppc-2009-12-16-b4.tar.bz2
> 
> on my Mac OS X 10.5.8 Leopard, PPC G4.
> 
> I adjusted  PATH and JAVA_HOME, and
> 
> '$ java -version' delivers
> 
> $ java -version
> openjdk version "1.7.0-internal"
> OpenJDK Runtime Environment (build
> 1.7.0-internal-landonf_2009_12_16_12_54-b00)
> OpenJDK Zero VM (build 17.0-b05, interpreted mode)
> 
> So the installation seems to have gone right.
> 
> But when I open Utilities/Java-Settings.app, only the outdated 1.4.x und 1.5.x java versions are displayed; if I launch a more recent java app, that one states that only java 1.5.x is installed.
> 
> What can I do to notify the system that there is java 1.7 installed?


The .jdk detection system used by Java Preferences does not use the $PATH set in your shell, but rather scans the */Library/Java/JavaVirtualMachines directories for JVM bundles to load.

The Mac OS X port has changes to the build system to create a parallel "1.7.0.jdk" product bundle. This bundle contains an Info.plist file and structure that is recognized by the Mac OS X Java detection/launching system. It would be perfectly plausible to re-bundle a PPC BSD-port product, and put it in ~/Library/Java/JavaVirtualMachines, but the work was simply never done for the BSD port.

Regards,
Mike Swingler
Java Engineering
Apple Inc.



More information about the macosx-port-dev mailing list