This afternoon I wanted to draw a few charts with PAWS (former SPSS) 18 on my mac. A nice histogram was only a few clicks away, so I thought. Unfortunately, a recent Apple Java update messed up the Chart Java applet SPSS needs to draw charts. I did lots of Googling, but I was unable to find an ‘out-of-the-box’ solution. After a few hours of trial, error and Google, I came up with a solution:
First of all, you need to restore the old Java version 1.5.0, so you have BOTH the old 1.5.0 and the new 1.6.0 java versions installed.
- Download the official Java package from Apple: Java for Mac OS X 10.5 Update 4, dated June 15, 2009.
- Use the excellent shareware utility Pacifist to open the downloaded JavaForMacOSX10.5Update4.pkg file.
- First use Finder to go to System > Library > Frameworks > JavaVM.framework > Versions and delete the two aliases (symlinks) 1.5 and 1.5.0. Don’t skip this step, because otherwise the extraction will follow the symlinks and overwrite the contents of the 1.6.0 folder, which will corrupt your java installation!
- In Pacifist, drop downto Contents > System > Library > Frameworks > JavaVM.framework > Versions.
- In Pacifist, select 1.5 and 1.5.0, Control-click on the selection, and chose Install to Default Location from the pop-up menu.
Now, secondly, you need to point PASW/SPSS to the old java library, since it can’t handle the new java version.
- Use the finder (not the dock) to go Applications > SPSSInc > PASWStatistics 18
- Right click PASWStatistics18.0 and choose ‘show package content’
- Navigate to Contents > Bin
- edit the file jvmcfg.ini with text editor: change the line ‘
Open SPSS 18 again, and the graphs will magically be drawn again!