Thanks Micheal, But I am a beginner to java. I am able to run that in Netbeans, But when I am trying using terminal its not working. I tried with giving all the files like /var/lib/neo4j/lib* to include all jar files. But My insert-script still not working.
Can you give me a link to download all these jar files. Exception in thread "main" java.lang.NoClassDefFoundError: org/neo4j/graphdb/RelationshipType at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2625) at java.lang.Class.getMethod0(Class.java:2866) at java.lang.Class.getMethod(Class.java:1676) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) Caused by: java.lang.ClassNotFoundException: org.neo4j.graphdb.RelationshipType at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) Can you give me a link On Tue, Jun 9, 2015 at 11:19 PM, Michael Hunger < [email protected]> wrote: > Use a real build system to handle your dependencies. For using Neo4j > embedded you need way more jar files > > And update to 2.2.2 > > see here, this is the minimum without Cypher. > > mvn dependency:tree > [INFO] Scanning for projects... > [INFO] > > [INFO] > ------------------------------------------------------------------------ > [INFO] Building neo4j-xxxx 2.2.0 > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ neo4j-import > --- > [INFO] org.neo4j-contrib:neo4j-import:jar:2.2.0 > [INFO] +- org.neo4j:neo4j-kernel:jar:2.2.0:compile > [INFO] | +- org.neo4j:neo4j-primitive-collections:jar:2.2.0:compile > [INFO] | +- org.neo4j:neo4j-io:jar:2.2.0:compile > [INFO] | \- org.neo4j:neo4j-csv:jar:2.2.0:compile > [INFO] +- org.neo4j:neo4j-lucene-index:jar:2.2.0:compile > [INFO] | \- org.apache.lucene:lucene-core:jar:3.6.2:compile > [INFO] \- org.neo4j:neo4j-kernel:test-jar:tests:2.2.0:test > > > Michael > > Am 09.06.2015 um 19:42 schrieb Anil Gautam <[email protected]>: > > This is the error: > > and I have tried with > javac -cp > geronimo-jta_1.1_spec-1.1.1.jar:neo4j-kernel-2.1.7.jar:opencsv-2.3.jar:neo4j-kernel-2.1.7.jar:neo4j-primitive-collections-2.1.2.jar > Neo2.java > > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/neo4j/graphdb/RelationshipType > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2625) > at java.lang.Class.getMethod0(Class.java:2866) > at java.lang.Class.getMethod(Class.java:1676) > at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) > at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) > Caused by: java.lang.ClassNotFoundException: > org.neo4j.graphdb.RelationshipType > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > > > On Tuesday, June 9, 2015 at 11:11:23 PM UTC+5:30, Anil Gautam wrote: >> >> is the problem solved? Because I am still facing the same error. >> >> On Tuesday, January 22, 2013 at 3:56:48 AM UTC+5:30, Michael Hunger wrote: >>> >>> can you list all that you've imported? >>> >>> neo4j-kernel.jar >>> >>> Michael >>> >>> Am 21.01.2013 um 07:28 schrieb Gouse: >>> >>> Hi, >>> >>> I am getting an error "*java.lang.ClassNotFoundException: >>> org.neo4j.graphdb.RelationshipType*" while executing a program.I have >>> imported all the neo4j jars and added all the neo4j jars in my classpath.Do >>> i need to add any extra jars in my classpath or am i missing anu jars?.In >>> which jar this class is present. >>> >>> Can someone please help me on this. >>> >>> Thanks in advance. >>> >>> >>> Thanks >>> Gouse. >>> >>> -- >>> >>> >>> >>> >>> > -- Regards Anil Gautam -- 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/d/optout.
