the import.sh is for the binary download, 
https://github.com/jexp/batch-import/tree/20#binary-download

use 
import-mvn.sh test.db nodes.csv rels.csv

I added a check to import.sh to produce a sensible error message



Am 07.01.2014 um 19:01 schrieb Tiago Sequeira <[email protected]>:

> Hi guys, I am trying to use batch-import but it always giving an execution 
> error, anyone knows what could be?
> 
> Thanks in advance.
> 
> ---
> 
> export JAVA_HOME=/home/ts/jdk1.7.0_45
> export PATH=$PATH:$JAVA_HOME/bin
> 
> mvn -v
> /home/ts/jdk1.7.0_45
> Maven version: 2.0.7
> Java version: 1.7.0_45
> OS name: "linux" version: "2.6.32-220.el6.x86_64" arch: "amd64"
> 
> ./import.sh test.db nodes.csv rels.csv
> 
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/neo4j/batchimport/Importer
> Caused by: java.lang.ClassNotFoundException: org.neo4j.batchimport.Importer
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> Could not find the main class: org.neo4j.batchimport.Importer. Program will 
> exit.
> 
> ./import_csv.sh test.db nodes.csv rels.csv
> 
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'exec'.
> [WARNING] Skipping jpp repository file:///usr/share/maven2/repository in 
> vanilla mode
> Downloading: 
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.1/maven-compiler-plugin-2.1.pom
> Downloading: 
> http://m2.neo4j.org/content/repositories/snapshots/org/apache/maven/plugins/maven-compiler-plugin/2.1/maven-compiler-plugin-2.1.pom
> [WARNING] Skipping jpp repository file:///usr/share/maven2/repository in 
> vanilla mode
> Downloading: 
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.1/maven-compiler-plugin-2.1.pom
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
> 
> 
> Project ID: org.apache.maven.plugins:maven-compiler-plugin
> 
> Reason: POM 'org.apache.maven.plugins:maven-compiler-plugin' not found in 
> repository: Unable to download the artifact from any repository
> 
>   org.apache.maven.plugins:maven-compiler-plugin:pom:2.1
> 
> from the specified remote repositories:
>   Neo4j Snapshots (http://m2.neo4j.org/content/repositories/snapshots),
>   __jpp_repo__ (file:///usr/share/maven2/repository),
>   central (http://repo1.maven.org/maven2)
>  for project org.apache.maven.plugins:maven-compiler-plugin
> 
> 
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 10 seconds
> [INFO] Finished at: Tue Jan 07 17:32:43 WET 2014
> [INFO] Final Memory: 36M/50432M
> [INFO] 
> ------------------------------------------------------------------------
> 
> 
> -- 
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to