James' Blog

James’ personal blog

Installing Java6 on Mac…

…was a terrible ordeal. Apple provides 3 different updates for OSX 10.5 and I ran them all. Once I installed them, I did a java -version from the command line and it still said 1.5. Apparently, there’s a /Applications/Utilities/Java/Java Preferences.app program you can run to change these settings. I ran it and it didn’t seem to do anything, until I restarted (was it my computer or my terminal?). Then it seemed to work in user mode, but in root or sudo it still says 1.5. I ended up just writing an alias to the java I wanted
alias java=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java

Posted 1 year, 3 months ago at 2:05 pm.

Add a comment