Sunday, March 10, 2013

How to Install Neo4j on Windows and a Solution to "Unable to access jarfile windows-service-wrapper-*.jar"

Installing Neo4j on Windows is pretty straightforward, but the Neo4j installation instructions for Windows are lacking….this is all they have.  It’s a little more involved than that.

image

 

Install Java

Download and Install the Java JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html

I clicked on this graphic:

clip_image001

I then read the entire "Oracle Binary Code License Agreement for Java SE" word for word with Oracle and my lawyer present. After days of negotiation with Oracle we finally came to an agreement on the terms. My lawyer OK'd everything, so I came back and clicked on "Accept License Agreement".

clip_image002

I then selected the Windows x64 install. Version 7u17 at the time of this post.

clip_image003

Install Neo4j

Download the Community Edition of Neo4j from http://www.neo4j.org/install

clip_image004

Unzip it to c:\temp\Neo4j

clip_image005

Open base.bat in c:\temp\Neo4j\...\bin with your favorite text editor, I use Notepad++, but any text editor will do.

Note if you don't do this step you could get this exception when trying to install Neo4j

Error: Unable to access jarfile windows-service-wrapper-*.jar

Find this line:

set wrapperJarFilename=windows-service-wrapper-*.jar

Change it to:

set wrapperJarFilename=windows-service-wrapper-4.jar

 

Save base.bat

 

Open a Command Prompt and navigate to c:\temp\Neo4j\...\bin

 

Run Neo4j.bat

 

You might get a UAC prompt if you just double click on it. If you do, click "More info", then click "Run Anyway"

clip_image006

clip_image007

You might get this "Windows Security Alert", check whatever networks are appropriate for you scenario and click Allow Access.

clip_image008

If all goes well, Neo4j.bat will output this text:

org.neo4j.server.AbstractNeoServer INFO: Server started on [http://localhost:7474/]

image

Go to http://localhost:7474 and you should see the Neo4j web administration console.

clip_image009

There are a lot of ways to get help…start with http://www.neo4j.org/participate.

Jon