Pages

Monday, April 11, 2011

Mac OS X -=- Installing Java 1.4 on Snow Leopard

By default, Snow Leopard does not include Java 1.4 anymore. All the Java 1.4 softlinks points to the Java 1.6 library. If you want to install Java 1.4, you must install it manually.


In the terminal: 


Get the java 1.4.2 that was included in 10.5 "leopard" and unpack

cd /tmp/
curl -o java.1.4.2-leopard.tar.gz http://icebergsofts.com/static_content/java.1.4.2-leopard.tar.gz
tar -xvzf java.1.4.2-leopard.tar.gz

Move it to your System java folder (password needed)
sudo mv 1.4.2 /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2-leopard

Tell OS X that java 1.4.2 actually is java 1.4.2
cd /System/Library/Frameworks/JavaVM.framework/Versions/
sudo ln -s 1.4.2-leopard 1.4.2
sudo ln -s 1.4.2 1.4

Open Java Preferences
open "/Applications/Utilities/Java Preferences.app"

Change the properties to use Java 1.4.2 32-bit by default:



Credits goes to http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard

No comments:

Post a Comment