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: Using Java 1.3 on PowerPC and 1.5 on Intel




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...


http://www.amug.org/~glguerin/howto/More-open-files.html#prelude

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.


Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >Using Java 1.3 on PowerPC and 1.5 on Intel (From: Ulrich Kortenkamp <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.