Site Navigation

Oct 6, 2012

Mac OS X Java JVM Paths and Settings

I just wanted to write down some quick facts about the locations of Java related paths on Mac OS X. This should be the same for 10.7 (Lion) and 10.8 (Mountain Lion). But I am using Mountain Lion so that is the only version I can truly vouch for.

My reason for finding this information was to remove an older version of the JVM. I think it is a good idea to leave the Apple versions of the JVM on the machine (1.4 to 1.6.x on my machine). There still may be some utilities and such that rely on these versions. But unneeded versions of Java 1.7 should be fair game.

Java 6 and Older

Path: /System/Library/Frameworks/JavaVM.framework/Versions

Java 7 and Newer

Path: /Library/Java/JavaVirtualMachines


JVM 7 Settings: Settings -> Java
General Java and JVM Settings: Applications -> Utilities -> Java Preferences

The first utility configures general Java Settings. The second allows you to select which versions are active and which is the default.

Removing a JVM

To remove a version, use sudo and rm -r to delete the desired directory of the version you no longer need. Remember using rm -r as the super user is very dangerous so make sure you know what you are doing before attempting this.
Post a Comment

Favorite Links Feed