Issues with installing Neo4J 1.9, with Java 1.7, on Windows 7

423 views
Skip to first unread message

Rodger

unread,
May 25, 2013, 2:27:39 PM5/25/13
to Neo4j
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!




Michael Hunger

unread,
May 25, 2013, 5:06:17 PM5/25/13
to ne...@googlegroups.com
without bin
> JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_15
without bin
> JRE_HOME=C:\Program Files (x86)\Java\jre7
>
with bin
> JAVA_PATH=C:\Program Files (x86)\Java\jdk1.7.0_15\bin

> --
> You received this message because you are subscribed to the Google Groups "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

(you)-[:GET]->(graphconnect-ticket)<-[:DISCOUNT {value:25%}]-(NEO4GC)

Michael Hunger

unread,
May 25, 2013, 5:06:29 PM5/25/13
to ne...@googlegroups.com
Also see: http://neo4j.org/install/windows

Am 25.05.2013 um 20:27 schrieb Rodger:

Rodger

unread,
May 25, 2013, 6:11:58 PM5/25/13
to ne...@googlegroups.com
Good one! That worked. Thanks!

The crazy thing is, I also watched that video.
 
These little gotchas really get you.



Peter Neubauer

unread,
May 27, 2013, 6:25:22 AM5/27/13
to Neo4j User
Rodger,
the Windows section is work in progress. Let us know if there is
anything we can improve!

/peter

Cheers,

/peter neubauer

G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer

Neo4j 1.9 GA is out -
http://blog.neo4j.org/2013/05/neo4j-19-general-availability.html
Neo4j questions? Please use SO - http://stackoverflow.com/search?q=neo4j
Reply all
Reply to author
Forward
0 new messages