Snow Leopard Java problems (and fix)

11/20/2009 6:20 PM
You can subscribe to this wiki article using an RSS feed reader.
Introduction to the Problem
The Insight Studio application fails to launch in Snow Leopard and the Inscribe and Insight client tools do not function properly.
Insight Studio requires Java 1.4 to run. Insight and Inscribe will run on later versions of Java but the functionality will be affected. Snow Leopard removed Java 1.4 and only includes Java 1.6.

Solution
Install Leopard's 1.4 version of Java

The steps are fairly simple but may be too technical for some of our users. It also requires sudo rights and access to the Terminal in Snow Leopard. If you do not understand these instructions, please ask for some technical help from your IT department.

Open the Terminal in Applications > Utilities > Terminal 

Execute each the following commands in Terminal. This will download the Leopard version of java 1.4 and install it into the right location.

Note: that each line in the following table is a whole command. This is important for the curl command that looks like it is on two lines

 


cd /tmp/
  


curl -o java.1.4.2-leopard.tar.gz http://www.cs.washington.edu/homes/isdal/snow_leopard_workaround/java.1.4.2-leopard.tar.gz



tar -xvzf java.1.4.2-leopard.tar.gz



sudo mv 1.4.2 /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2-leopard
 

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


Thats all you need to do. The Insight tools will now launch and run properly on your Mac with Snow Leopard.


This fix is from a subsection of the following wiki.
http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard