Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I am using a MackBook Pro with Mac OS X 10.8.2. I currently have Java 6 installed:

wdb-laptop:~ wdb$ java -version
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)

I would like to install Java 7 to play with JavaFX, however, all of my apps for work are still on Java 6. So I would like to install Java 7 "on the side". Is his possible? If so, how? I want to make sure I will not loose my Java 6 installation if I run the .dmg from Oracle.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

The oracle Java 7 does not remove the Apple supplied Java 6. It does however change /usr/bin/java to start the Oracle Java.

To start a jar with Java 6 instead of just using java on the command line put in the full path to the java i.e. /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.