Fixing Java on OS X 10.10 Yosemite

After upgrading to Yosemite, I was unable to run Apache Solr as it could not find a version of Java installed.

$java -version

No Java runtime present, requesting install.

I downloaded and installed the latest version of Java 8, but that didn’t work. I removed it and downloaded the latest version of Java 7.  Still no dice.

After a bit of digging around, I found a reference to installing Java for OS X 2014-001. While this is Java 6, it fixed my issue and allowed me to start Solr.

4 thoughts on “Fixing Java on OS X 10.10 Yosemite”

  1. Same problem. I pointed my PATH at Java 8 from my ~/.bashrc with

    JAVA_HOME=”/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home”
    PATH=$JAVA_HOME/bin:$PATH

    Cleared things up for me.

  2. I found that on 10.10 some things didn’t see the Java 8 runtime, but they do see the SDK.

    Try the Java 8 SDK. Probably safer than an old Java 6 runtime.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.