This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Recently I did an reinstall of Tiger (10.4) on my G5 iMac. I completed all the updates, and updated Java to 1.3 and 1.4. I did not want to update to Java 5 because I am developing some apps that have to work on older machines, and I want to be sure I am working in a 1.4 environment.
However, I have looked for the Java Preferences app, which according to all that I have researched, should be in Applications/Utilities, but it is not there.
sudo find / -name "Java Preferences" comes up with nothing also.
Does anyone have a suggestion as to how I can get Java Preferences on my machine?
I updated to Java 5, and that gave the Java Preferences app. According to the Apple tech notes, that app only came with the Java 5 update on Tiger.
You can open a terminal and run java -version to find out which java version you are running
That will only tell me which version I am using, it will not change it. There are some very >>limited<< options in Java Prefs to change the version applets use, but you cannot guarantee that apps will use a certain version. There are other options however; Google "change Java version mac" and get a plethora of (sometimes passionate) debate on the matter.
The simplest is to change the default JDK by changing the symlink in /System/Library/Frameworks/JavaVM.framework/Versions to point to the version you want (this is where the passion comes in)
sudo ln -fhsv <directory_of_version_I_want_to_be_default> CurrentJDK
here is a nice little shell script that will do that for you (along with a lot of passionate debate following):