Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java on Leopard report



I have noticed the following

lrwxr-xr-x  1 root  wheel    5 26 Oct 21:44 1.5 -> 1.5.0
drwxr-xr-x  8 root  wheel  272 15 Nov  2006 1.5.0
drwxr-xr-x  7 root  wheel  238 26 Oct 21:44 A
lrwxr-xr-x  1 root  wheel    1 26 Oct 21:44 Current -> A
lrwxr-xr-x  1 root  wheel    3 26 Oct 21:44 CurrentJDK -> 1.5

And ant works if I point JAVA_HOME to JAVA_HOME=/System/Library/ Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
instead of
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/Current/ Home


Perhaps re symlinking /usr/bin/java to CurrentJDK instead of Current might do the trick?

--Calum

On 27 Oct 2007, at 17:25, Mike Swingler wrote:

This is a bug that we found too late to change in Leopard GM.

/usr/bin/java, and the rest of the /usr/bin Java tools should work in 64-bit on capable hardware.

Once again, our sincerest apologies,
Mike Swingler
Java Frameworks Engineer
Apple Inc.


On Oct 27, 2007, at 9:17 AM, Maarten Hazewinkel wrote:

I have a somewhat curious difference between the standard command- line
java command (/usr/bin/java) which cannot do 64 bit, and the fully
path-specified one in the Java 1.5 framework which can:


marc-hazewinkels-macbook-pro-15:~ marc$ java -d64 -version
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)


marc-hazewinkels-macbook-pro-15:~ marc$
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/ java
-d64 -version
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)


This is on an erase-target-disk clean install of Leopard on a 2nd
generation Macbook Pro.

Maarten



On 10/27/07, Yong Hyeon Yoon <email@hidden> wrote:
Okay, finally I got my Leopard DVD and installed it freshly on Core 2
Duo hardware.


$ sysctl hw.cpu64bit_capable
hw.cpu64bit_capable: 1

$/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/ Commands/
java -d64 -version
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)



Yong


On 26-Oct-07, at 4:43 PM, Pratik Solanki wrote:

Then that can only mean you do not have 64-bit capable hardware. Do

$ sysctl hw.cpu64bit_capable

Do you see 1 as the output?

Pratik

On Oct 26, 2007, at 4:33 PM, Tony Bigbee wrote:

Thanks, but that did not work for me.

% /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
Commands/java
-d64 -version
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)


% uname -a
Darwin ajb-lap.local 9.0.0 Darwin Kernel Version 9.0.0: Tue Oct  9
21:35:55 PDT 2007; root:xnu-1228~1/RELEASE_I386 i386


On 10/26/07, Pratik Solanki <email@hidden> wrote:
This is an unfortunate bug that we discovered too late to be fixed
for
GM. As a workaround, use the full path of java.


$ /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
Commands/
java -d64 -version

Pratik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Java on Leopard report (From: "Tony Bigbee" <email@hidden>)
 >Re: Java on Leopard report (From: Yong Hyeon Yoon <email@hidden>)
 >Re: Java on Leopard report (From: Scott Kovatch <email@hidden>)
 >Re: Java on Leopard report (From: Pratik Solanki <email@hidden>)
 >Re: Java on Leopard report (From: "Tony Bigbee" <email@hidden>)
 >Re: Java on Leopard report (From: Pratik Solanki <email@hidden>)
 >Re: Java on Leopard report (From: "Tony Bigbee" <email@hidden>)
 >Re: Java on Leopard report (From: Pratik Solanki <email@hidden>)
 >Re: Java on Leopard report (From: Yong Hyeon Yoon <email@hidden>)
 >Re: Java on Leopard report (From: "Maarten Hazewinkel" <email@hidden>)
 >Re: Java on Leopard report (From: Mike Swingler <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.