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: Honoring Java Preferences



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

This email sent to email@hidden
References: 
 >Honoring Java Preferences (From: Javier Diaz Soto <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.