Search code examples
javamacosjava-7osx-mountain-lion

Installing Java 7 on Mac OS X: "A higher version of the JRE is already installed on this system"


When trying to install newly released Java 7 Update 6 for Mac, the installer terminates printing following error message:

A higher version of the JRE is already installed on this system

I installed Java 7 Beta before (which actually has been only an internet plugin), which had some problems with updating.


Solution

  • Deleting Java 7 Internet Plugin folder solves the problem (recommended way of uninstalling the beta), the installer is now able to run successfully.

    Run

    sudo rm -rf '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin'
    

    or delete /Library/Internet Plug-Ins/JavaAppletPlugin.plugin on your own.

    Do not forget to install JDK 7 afterwards, you will not be able to select Java 7 otherwise.