|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
Adam Fisk wrote:
Hi Everyone- I'm using a postflight bash script in my installer to detect Java 1.6 support and to dynamically swap in 1.6+ in my Info.plist if it's available. I'd imagine this is something many people, want, so I'm posting the code in case it's useful to anyone and to get feedback as to whether I've missed anything. It's basically checking that 1.6 exists on the machine and that the machine is 64 bit (has an Intel processor, but the Intel processor is not Intel Core Duo and not Solo).
What does this give you that "1.5+" doesn't?
test -d /System/Library/Frameworks/JavaVM.framework/Versions/1.6 && system_profiler SPHardwareDataType | grep Processor\ Name | grep Intel | grep -v "Intel Core Duo" | grep -v Solo && switchToJava6
Also see the 'arch' command, especially its ARCHPREFERENCE env-var.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.