On Aug 26, 2008, at 12:23 PM, Javier Diaz Soto wrote:
I have a user that has Apple“s Java 6 (Leopard) selected as his
preferred java. I have sent him a java app (launched by an sh
script) that launches in Java 5. What is the right way (preferably
compatible with other unixes) for the app to honor the user
preference and launch the Java version the user has selected in Java
Preferences?
Well, if you launched /usr/bin/java, it will honour the user's pref in
Java Preferences. Note that this only works on leopard. On Tiger, /usr/
bin/java will launch 1.5 (or 1.4 in case you haven't run Software
update in a long long long time).
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