Junbang Huang
Junbang Huang

Reputation: 1967

Unable to find any jvms matching version 1.7 while starting neo4j

I am using Mac OS X Yosemite and I had Java8 JRE installed

image1 image2

but, when I start neo4j, it is unable to find any JVM's matching version 1.7

image3

Upvotes: 5

Views: 9871

Answers (2)

midoc
midoc

Reputation: 133

Neo4J startup script looks for JAVA_HOME and if it is not set defaults to setting it to Java v1.7. So, set your JAVA_HOME in your .bash_profile file.

export JAVA_HOME=$(/usr/libexec/java_home)

Then, either restart your Terminal or do

$ source .bash_profile

Now, if you restart Neo4J you shouldn't see the error message.

Upvotes: 11

Nima
Nima

Reputation: 6563

You've installed java 8 while neo4j is searching for java 7. So install java 7 and set it as your default jvm/jre and it should execute correctly.

Upvotes: 3

Related Questions