Last Updated: February 25, 2016
· jm2dev

Neo4j and OpenJDK in OSX with Homebrew

I wanted to try the graph database neo4j, unfortunately the stable homebrew formula expects Oracle JVM. But I want to use OpenJDK 7. This issue has been solved in the beta version (2.0), and you can install neo4j and use it with just three lines of code:

export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0u.jdk/Contents/Home
brew install --devel neo4j
neo4j start

And you can see their new admin console in the browser:

open http://localhost:7474/webadmin/