2

I downloaded the latest version shell-tools_2.2. I didnt find a lib directory but I extracted the the files to the bin folder. Followed all the remaing instructions shown here. when I run neo4j-shell and try to export graphml I get the following error

neo4j-sh (?)$ export-graphml -o out.graphml match n return n

Unknown command 'export-graphml'

neo4j-sh (?)$ help

Available commands: alias begin cd commit create cypher dbinfo drop dump env exp
lain export gsh help index jsh load ls man match merge mknode mkrel mv optional
paths planner profile pwd return rm rmnode rmrel rollback schema set start trav
unwind using with

Also tried Mel18's syntax and had the same affect. The help command doesnt seem to show any additional commands regarding export-graphml. What can you suggest?

Neo4j community 2.2.0 Win 7

dw03
  • 95
  • 5

2 Answers2

1

Did you download the zip manually or use the curl command? I found when I downloaded the zip manually the lib files weren't in there. After using curl, I needed to chmod so the new .jar files were executable. Hope that helps.

Mel18
  • 125
  • 4
  • This worked @Mel18, Thanks for your help. However after using the tool I realised that all the id's are missing in the grapheml file. – dw03 May 09 '15 at 15:58
0

Can you view the Neo4jShell.bat and see from which directory it builds it's classpath? You should extract the jars from the download top-level into that directory.

Michael Hunger
  • 41,339
  • 3
  • 57
  • 80
  • classpath points to libpath. Having more luck with linux installation right now. 'rem Setup the classpath set LIBPATH="" pushd "%REPO%" for %%G in (*.jar) do call:APPEND_TO_LIBPATH %%G popd goto LIBPATH_END : APPEND_TO_LIBPATH set filename=%~1 set suffix=%filename:~-4% if %suffix% equ .jar set LIBPATH=%LIBPATH%;"%REPO%\%filename%" goto :EOF :LIBPATH_END set CLASSPATH=%LIBPATH%' – dw03 Apr 15 '15 at 09:27