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



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.

Thanks,
 Sam

On Apr 29, 2005, at 11:21 AM, Shawn Erickson wrote:


On Apr 29, 2005, at 7:54 AM, Lars Leibner wrote:

Hi *,

I just got the Java 5 Release 1 for Mac OS X 10.4 and installed it. I tried to set the Java 5 VM as the default VM using the tool from /Applications/Utilities/Java/J2SE 5.0. I selected J2SE 5.0. But when I go to the Terminal and type "java -version" I still get "1.4.2_07".

Looking into /System/Library/Frameworks/JavaVM.framework/Versions shows that the link "CurrentJDK" still points to "1.4.2". Do I have to change this link, too? And what about the strange directory "A"? The link "Current" points to the directory "A". Do I have to change this link, too?

No need to modify links, etc. unless you really want to (could get you in trouble on a future update, etc.)


If you want to run java via the terminal simply add an alias to the version of Java you want to use (name it java or java5, etc.). See my last email to this list for paths.

For applets the preference tool you used will take affect and if you have a bundled Java application simply update its plist to request 1.5 or if it specifies 1.4+ then the preference tool you used should get 1.5 picked up if you can the order (I believe).

-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


_______________________________________________ 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>)



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.