Unable to access jarfile ...\windows-service-wrapper-*.jar #391

Open
kkurni opened this Issue Dec 27, 2012 · 15 comments
@kkurni

Hi,

I get this error on my windows 8 machine.

I try using 1.8 and 1.9 but still get the same error when calling neo4j.bat start

Any hints ?

Thanks

@jexp
Neo4j member

Any chance to share more details? E.g. a full stacktrace? try to start neo4j.bat console to see the error on the console.

@kkurni

PS C:\temp\neo4jRC1\bin> .\Neo4j.bat console
Error: Unable to access jarfile C:\temp\neo4jRC1\bin\windows-service-wrapper-*.jar

This is the error message that I get on windows.

I am using windows 8 machine inside parallels.

My plan is deploying it into windows Azure, so I have to test it on my local windows first.

Thanks

@valsaul

I had the same problem, as it seems bat file is not recognizing the wildcard command properly.

To solve this, I edited bin\base.bat file and found the line with windows-service-wrapper-*.jar and changed it to windows-service-wrapper-4.jar , which was the name of the file that came with M1.8.1.

This might not be the proper solution but just a stop gap measure.

@kkurni
@Ejhi

@valsaul thnx. It help me too.

@bbar

The problem seems to have something to do with the JRE version you're running. I was on 6 and everything worked fine. I switched to 7, and received this error. Neo4j.org states here that the database is currently tested with JRE 6: http://docs.neo4j.org/chunked/stable/deployment-requirements.html#_jdk_version

Also, if you open the log in /data/log, you'll see that you get a warning if you're running anything but JRE 6.

In any case, either edit the bin\base.bat file, or switch your JRE back to version 6.

@jakewins
Neo4j member

As per the comment above, Neo4j 1.8 only supports JDK 1.6. Support for Java 7 will be delivered in the upcoming 1.9 release of Neo4j.

@jakewins jakewins closed this Feb 18, 2013
@rickardoberg

While doing Windows QA I got this error as well. Turns out I had four different VMs installed (Java 6 and Java 7). I uninstalled all of them and only installed Java 7 JDK, and then it worked.

@rickardoberg

Tried uninstalling Java 7 and installed Java 6, and it still worked. Must have been the preinstalled Java that somehow screwed it up, I think. Anyone who has this problem, please report output of "java -version".

@rickardoberg rickardoberg reopened this Feb 19, 2013
@cleishm

I've reproduced this.

I just took a clean windows machine (never had a JRE installed), installed Oracle JRE 7u17, unpacked Neo4j 1.9.M05, ran "bin\Neo4j.bat start".

@lassewesth
Neo4j member

@chrisleishman @rickardoberg bba97d5 ought to fix this?

@akollegger
Neo4j member

@lassewesth Have you had a chance to test on a windows boxer?

@achenzhaoa

only change line 8 in bin/base.bat : set wrapperJarFilename=windows-service-wrapper-4.jar
I have test it. now it works well

@aplatypus

Still failing. Also ... The wildcard won't work because it is not a legal Windows file name. Perhaps the Java 1.6 loader did a file expansion and 1.7 loaded the literal string.

@davidegrohmann davidegrohmann removed the server label Oct 22, 2015
@jakewins jakewins added the operability label Dec 5, 2015
@tinwelint
Neo4j member

Didn't we remove the windows wrapper thing as a whole recently?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment