Am 11.01.2008 um 20:36 schrieb Galen Rhodes:

Absolutely. First, to understand the bug open up a Terminal window and type the following:

        java -d64 -version

Even if you're running Leopard on an Intel 64-bit processor (Core 2 Duo or Xeon) you see the following message :

        Cannot run Java in 64 bit mode. Continuing in 32 bit mode.
        java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13- b05-237)
        Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)

Which is wrong because it should be able to run in 64-bit mode. However, if you type in the full path to the Java library like so:

/System/Library/Frameworks/JavaVM.framework/Home/bin/java -d64 - version

Then, on Leopard running a 64-bit processor, you should see:

        java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13- b05-237)
        Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_13-119, mixed mode)

For some reason you have to specify the path to the Java executable in order for 64-bit mode to work.

They are different executables. The one at /System/Library/Frameworks/ JavaVM.framework/Home/bin/java is build for PPC, x86_32 and x86_64. The one at /usr/bin/java (aka /System/Library/Frameworks/ JavaVM.framework/Versions/Current/Commands/java) is build only for PPC and x86_32.

Ralf
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to