Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Neo4j configure path to java 8

Tags:

neo4j

How do you configure neo4j default path java_home to some other path? The current server has java 6 installed and some applications depend on it. I need to configure neo4j to java 8 folder without changing the java_home. How do I do this?

like image 598
Matthew Ariel Avatar asked Jan 30 '26 21:01

Matthew Ariel


1 Answers

While you could try and fix all the scripts that depend on JAVA_HOME :

  • installation_directory/bin/* on Linux
  • installation_directory\bin\Neo4j-Management\Get-Java.ps1 on Windows

your best bet i.m.o is to override JAVA_HOME in the session where you start Neo4j. If you're using the package installations on Linux, you should set the JAVA_HOME override in the environment of the neo4j user (that should not impact other softwares).

Hope this helps,

Regards, Tom

P.S. The fact that you are running other applications on the same machine as Neo4j may not be a good idea if we're talking about a production environment (it's not a good idea for any environment in fact).

like image 115
Tom Geudens Avatar answered Feb 02 '26 18:02

Tom Geudens



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!