Originally posted by Jim Yingst:
Your code for the Mac seems to be right for OS X - aside from missing a space after the /usr/bin/open. I don't know if it would work for older systems, but that's probably not a small number of users anyway.
Another option is if you're using JDK 6, you can use java.awt.Desktop to open() the directory with simple platform-independent code. That's nice, but only works if you can reasonably expect your users to have JRE 6 installed. For some applications that may be a perfectly reasonable expectation, but for others, not.