On Mar 30, 2006, at 7:16 AM, Ulrich Kortenkamp wrote:
Hi,
after doing some benchmarks we now know for sure that we have to
use Java 1.3.1 on PowerPC-based machines, and Java 1.5 on Intel-
based ones. Is there a good way to do this? To me, it seems that
there is no way to specify something like this for
JavaApplicationLauncher...
You could use a script as the initial executable for your application
bundle instead of JavaApplicationStub as Greg Guerin outlines here...
From the script you would need to determine architecture. In your
contents directory you would need two copies of the Info.plist file.
Say 1.3 is the default installed PPC Info.plist and you have a 1.5
Intel specific version called Info...
Then something psuedo-code, my shell scripting not the best...
if arch is Intel
# backup if you want
cp ../Info.plist ../bkup
# Use the 1.5 JVMVersion intel specifc
cp ../Info ../Info.plist
fi
A suggestion.
Or you could as well detect the need for a change and include code to
modify the Info.plist. Maybe save off a persistent preference to
indicate if this has been the once it would be needed.
Others may have themselves or have used code that could accomplish
this differently and possibly better.
_______________________________________________
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