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: Java 5 as default JDK



So long as those docs about JVMVersion are still true, everything's good. :)

Thanks,
 Sam

On Apr 29, 2005, at 12:12 PM, Shawn Erickson wrote:


On Apr 29, 2005, at 8:44 AM, Sam Berlin wrote:

I have not gotten a Tiger box yet, so I can't test the preferencing, but is there a way for the application itself to prefer Java 1.5 but still allow Java 1.4, regardless of the user's preference? IMHO, the version of Java being used is really an implementation detail, something the user shouldn't care about. The developer should figure out which version of Java the program works best with, and prefer those. For instance, if Info.plist could have something like a comma-delimited list of versions (in decreasing preference order), that'd work.

Tiger / Java 5 doesn't change how the "JVMVersion" key works from what I can see (obviously docs not update to include Java 5 just yet). I suggest filling an enhancement request.


---
JVMVersion

This key is recommended in any Info.plist file. It determines which version of Java the application is run with. Table 2-1 lists valid strings for the JVMVersion key along with a description of which version of Java is used. Without this key set, your application may not launch with the version of Java you intend—make sure to set it. With the Java 1.4.2 release, specifying a minor version of Java has been deprecated; instead use the asterisks (*) or plus (+) symbols with a major version. For example use 1.4+ instead of 1.4.2.

Note: If you do not set the JVMVersion key in a double clickable application, it will run in Java 1.3.1.

Table 2-1 :  Values to specify the Java version in Mac OS X

String

Java version used

Notes

1.3.1

1.3.1

Specifies an exact version of Java. It is not recommended that you do not use this key unless absolutely necessary.

1.3*

1.3.1

Requests the highest version of Java 1.3 available. Note that if Java 1.3 is updated in future releases of Mac OS X, the latest version of Java 1.3 will be used.

1.3+

1.4.2

Requests the highest version of Java above 1.3. Note that if Java is updated in future releases of Mac OS X, the latest version of Java will be used.

1.4.1

1.4.2

If Java 1.4.2 is installed, Java 1.4.1 is no longer used. For compatibility, applications that specify 1.4.1 will run in Java 1.4.2. You should update these applications to specify 1.4* or 1.4+ as appropriate.

1.4*

1.4.2

Specifies the highest version of the Java 1.4 available. Note that if Java 1.4 is updated in future releases of Mac OS X, the latest version of Java 1.4 will be used.

1.4+

1.4.2

Specifies the highest version of Java above 1.4. Note that if Java is updated in future releases of Mac OS X, the latest version of Java will be used.



-Shawn



_______________________________________________ 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: 
 >Java 5 as default JDK (From: Lars Leibner <email@hidden>)
 >Re: Java 5 as default JDK (From: Shawn Erickson <email@hidden>)
 >Re: Java 5 as default JDK (From: Sam Berlin <email@hidden>)
 >Re: Java 5 as default JDK (From: Shawn Erickson <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.