OSX Java Upgrade Question

Last question for the day, I swear ;)!

I want to upgrade from SDK 1.4 to JDK 5, but I currently am running Panther (OSX 10.3.9), and Java 5 requires Tiger (OSX 10.4.x). I am willing to upgrade my system, but can someone help me with the process of upgrading XCode to compile Java code using JDK 5 once I am done with the OS upgrade?

Thank you,

-matt

[374 byte] By [stidlea] at [2007-10-2 12:18:03]
# 1

Let me be more specific.

I found this post elsewhere:

<i>"A little hint:

"After you install 1.5 DMG - it does not replace JDK 1.4.2.

"According to docs, there is a Java Preferences app in Application-Utilities-Java-J2SE5.0 that, theoretically, should allow you to indicate the order/preference of JDKs both for applets and runtime.

"For whatever reason, that did not work for me. So, if you end-up in the same situation, here's how to do the trick manually:

"> cd /System/Library/Frameworks/JavaVM.framework/Versions

> mv CurrentJDK CurrentJDK-old

> ln -s 1.5 CurrentJDK

"which will backup the symlink and create new, pointing to 1.5 JDK distro, this time.

"that's it. Anything else should work as usual, considering you had JAVA_HOME=/Library/Java/Home - as you should on a Mac OS X"</i>

Should this process be sufficient to make XCode compile using JDK 5?

Thanks!

-matt

stidlea at 2007-7-13 9:05:18 > top of Java-index,Java Essentials,New To Java...