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 know there similar questions on how to enable the Java 7 JRE on Mountain Lion when Apple's Java 6 JRE is installed as well.

But I just did a clean install of Mountain Lion, installed Java 7 JRE - not Java 7 JDK - and it is not being detected.

I see the Java icon in System Preferences. But Java applications are still prompting for a Java 6 installation from Mountain Lion. And running "java -version" from the command line also does the same.

Oracle's instructions seem to say that I do not need to do anything further then simply installing the JRE. And online tutorials I read also suggest the same.

Does anyone have an idea why this is?

share|improve this question
    
Good question! I just faced the same issue with a fresh Lion + JRE7. Thanks! +1 –  jweyrich Jan 17 '13 at 19:58
add comment

2 Answers

up vote 6 down vote accepted

In Oracle's JRE 7 for Mac installation instructions, it states:

Installing a JRE from Oracle will not:

  • Update java -version symlinks or add java to your path.

  • Show the installed JRE in the Java Preferences.app

To be able to do the above, you need to install the JDK.

After installing the JDK, go to Applications > Utilities > Java Preferences.app and drag Java SE 7 to the top to indicate that it is preferred. You may also switch off Java SE 6 entirely without uninstalling it.

share|improve this answer
2  
Unbelievable that I missed that! I installed JDK and it worked. Thank you so much for your help. –  9ee1 Sep 29 '12 at 7:02
add comment

Uninstall java by revo and go to control panal and java and settings and deleted files. then click ok.and restart computer then install java again from java.com

share|improve this answer
    
Java is not installed (well /usr/bin/java) is not - the one the OP installed is just for Java applets –  Mark May 2 '13 at 21:44
add comment

Your Answer

 
discard

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.