Hello,
I've been fighting with installing Neo4j 1.9 and 1.8
(and making this post) for the past three hours!
Here is my environment:
Windows 7 Ultimate with java:
java version "1.7.0_15"
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)
I've installed this java version, because it was required for Mysql
and Netbeans.
So, downgrading java is not an option since these other softwares much
work.
---
I created environment variables:
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_15\bin
JRE_HOME=C:\Program Files (x86)\Java\jre7\bin
JAVA_PATH=C:\Program Files (x86)\Java\jdk1.7.0_15\bin
I set the path to look for the correct version of java and NEO4J.
Unzipped neo4j-community-1.9-windows.zip
Tried to run neo4j.bat, but got the error:
The system cannot find the path specified.
--------
grep -i "system cannot" *
- nothing.
--------
I did a number of searches on the error.
No clear solution.
---------------------------- NEO4J Version 1.8
----------------------------
Then, tried to install Neo4j version 1.8.
http://blog.jongallant.com/2013/03/install-neo4j-windows.html
Go into base.bat
From:
set wrapperJarFilename=windows-service-wrapper-*.jar
to:
set wrapperJarFilename=windows-service-wrapper-4.jar
---
Set the path. Run neo4j.bat, but got:
Neo4j.bat
Unable to locate jvm.
Could not find HKLM\SOFTWARE\JavaSoft\Java Runtime Environment/
CurrentVersion entry in windows registry.
---
Search online,
https://github.com/neo4j/neo4j/blob/master/packaging/standalone/src/main/distribution/shell-scripts/bin/base.bat
Look at the file, neo4j.bat
rem Attempt finding JVM via registry
set keyName=HKLM\SOFTWARE\JavaSoft\Java Runtime Environment
set valueName=CurrentVersion
FOR /F "usebackq skip=2 tokens=3" %%a IN (`REG QUERY "%keyName%" /v
%valueName% 2^>nul`) DO (
set javaVersion=%%a
)
if "%javaVersion%" == "" (
FOR /F "usebackq skip=2 tokens=3" %%a IN (`REG QUERY "%keyName%" /v
%valueName% /reg:32 2^>nul`) DO (
set javaVersion=%%a
)
)
if "%javaVersion%" == "" (
set javaHomeError=Unable to locate jvm. Could not find %keyName%/
%valueName% entry in windows registry. Please make sure you either
have %JAVA_HOME% environment variable defined and pointing to a JRE
installation, or the registry key defined.
goto:eof
)
---
Look at the registry.
There is no such branch at all: HKLM\SOFTWARE\JavaSoft
!!!!
(HKEY_LOCAL_MACHINE)
However, in the registry, search for: "Java Runtime Environment"
Find:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime
Environment
With:
Name: Java6FamilyVersion, value: 1.6.0_43
Name: Java7FamilyVersion, value: 1.7.0_15
----
Searching the registry for:
1.6.0_43
mainly finds plugins, for the browser:
Java Plug-in 1.6.0_43
But there is also:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime
Environment\1.6.0_43
name: JavaHome
value: C:\Program Files (x86)\Java\jre6
C:\Program Files (x86)\Java\jre6\bin>java -version
java version "1.6.0_43"
Java(TM) SE Runtime Environment (build 1.6.0_43-b01)
Java HotSpot(TM) Client VM (build 20.14-b01, mixed mode, sharing)
C:\Program Files (x86)\Java\jre6\bin>file java*.*
java-rmi.exe: MS-DOS executable PE for MS Windows (console)
Intel 80386 32-bit
java.dll: MS-DOS executable PE for MS Windows (DLL) (GUI)
Intel 80386 32-bit
java.exe: MS-DOS executable PE for MS Windows (console)
Intel 80386 32-bit
java_crw_demo.dll: MS-DOS executable PE for MS Windows (DLL) (GUI)
Intel 80386 32-bit
javacpl.exe: MS-DOS executable PE for MS Windows (GUI) Intel
80386 32-bit
javaw.exe: MS-DOS executable PE for MS Windows (GUI) Intel
80386 32-bit
javaws.exe: MS-DOS executable PE for MS Windows (GUI) Intel
80386 32-bit
But no JDK/SDK for 1.6.
----------------------------
----------------------------
So, the question is:
How can I get NEO4J 1.9, or 1.8 to work with:
java version "1.7.0_15"
Thanks a lot!