miércoles, 21 de octubre de 2009

Java 1.5 in mac 10.6 (aka Snow Leopard)

Snow Leopard does not work with previous version of Java <-1.6 (32 o 64 bits). Fortunately, there is a solution for having a java 1.5 running in an upgraded system.
In gvSIG case the trick is simpler than the one provided in the oneswarm wiki
# From a terminal
cd /tmp/
# Download the java 1.5 for snow leopard (wget and others can be used as well)
curl -o java.1.5.0-leopard.tar.gz http://www.cs.washington.edu/homes/isdal/snow_leopard_workaround/java.1.5.0-leopard.tar.gz
# Untar the file
tar -xvzf java.1.5.0-leopard.tar.gz

# Move it to the java Folder

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



Tell the system which java 1.5 is the one.

# Change to the java versions directory
cd /System/Library/Frameworks/JavaVM.framework/Versions/

# From the finder


# Delete 1.5.0 (carefully)
sudo rm 1.5.0
# Symbolic link to the new onw
sudo ln -s 1.5.0-leopard 1.5.0

In gvSIG, you're done, the bundle will choose Java 1.5 from now on.

No hay comentarios: