Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to find any jvms matching version 1.7 while starting neo4j

Tags:

java

jvm

neo4j

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

image1image2

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

image3

like image 315
Junbang Huang Avatar asked Apr 19 '15 14:04

Junbang Huang


2 Answers

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.

like image 178
midoc Avatar answered Nov 11 '22 14:11

midoc


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.

like image 26
Nima G Avatar answered Nov 11 '22 14:11

Nima G