Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please use JAVA_HOME if possible #24

Open
gbonk opened this issue May 31, 2017 · 4 comments
Open

Please use JAVA_HOME if possible #24

gbonk opened this issue May 31, 2017 · 4 comments

Comments

@gbonk
Copy link

gbonk commented May 31, 2017

I installed Neo4J Community, then later I updated my Oracle Java via chocolatey.

When I restarted the Windows Service , Neo4j Graph Database, the service start failed and looking in the Neo4J logs directory there was an error saying it could not find, C:\Program Files\Java\jdk1.8.0_121\jre\bin\server\jvm.dll

Please, if the JAVA_HOME environment variable is set, set the registry key for HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\neo4j\Parameters\Java\jvm to use the JAVA_HOME environment variable.

I have updated mine to the following and it works fine.

%JAVA_HOME%\jre\bin\server\jvm.dll

@glennsarti
Copy link
Owner

Ahh of course yes. That will be an issue. I'll update that as soon as possible. Do you know which version of Neo4j package you're using? That way I can make sure I publish a package you can use.

@gbonk
Copy link
Author

gbonk commented Jun 1, 2017

I am using the latest package.

It is important to know the difference between the JDK and the JRE. My path above is for a Java Home that points to a JDK, but if I was using a Java Home pointing to a JRE the path after Java Home is slightly different. Sorry I don't have an example handy

@glennsarti
Copy link
Owner

Hrmm. OK I've just realised something. The issue is actually within the Neo4j installer itself, not in my chocolatey package wrapper. Which means I can't fix this from within chocolatey. Would you like me to open an issue on your behalf on https://github.com/neo4j/neo4j or are you happy to do that yourself?

@glennsarti
Copy link
Owner

Oh...looks like it's already been reported. neo4j/neo4j#9257

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants