Tuesday, June 22, 2010

ZendStudio 7.2 + Other Java Software on Mac OSX - Crashes on start

For a little while I didn't upgrade from ZendStudio 5.5 to 7.2 because of a silly mac bug that caused 7.2 to throw an exception whenever you start it.

I headbanged for a little while until I finally figured out that the issue is a simple problem with mac osx's symbolic linking system for managing java versions.

Here is the problem. Below is a list of file in the java framework directory - at /System/Library/Frameworks/JavaVM.framework/

drwxr-xr-x 15 root wheel 510 Jun 22 20:21 Versions
lrwxr-xr-x 1 root wheel 26 Jun 22 10:11 Resources -> Versions/Current/Resources
lrwxr-xr-x 1 root wheel 29 Jun 22 10:11 Libraries -> Versions/CurrentJDK/Libraries
lrwxr-xr-x 1 root wheel 23 Jun 22 10:11 JavaVM -> Versions/Current/JavaVM
lrwxr-xr-x 1 root wheel 24 Jun 22 10:11 Home -> Versions/CurrentJDK/Home
lrwxr-xr-x 1 root wheel 24 Jun 22 10:11 Headers -> Versions/Current/Headers
lrwxr-xr-x 1 root wheel 27 Jun 22 10:11 Frameworks -> Versions/Current/Frameworks
lrwxr-xr-x 1 root wheel 28 Jun 22 10:11 Commands -> Versions/CurrentJDK/Commands
lrwxr-xr-x 1 root wheel 24 Jun 22 10:11 CodeResources -> Versions/A/CodeResources
lrwxr-xr-x 1 root wheel 27 Jun 22 10:11 Classes -> Versions/CurrentJDK/Classes


problem is, macosx doesn't end up creating a sym link for Versions/CurrentJDK.

To fix the problem, all you have to do is symlink Versions/CurrentJDK to Versions/A .

Your problem might not be exactly this. It might be a variation of it. Feel free to leave a comment if this helps or if you find another variation of this problem

No comments:

Post a Comment