File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Creating Neo4j Graphs in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Creating Neo4j Graphs in java" Watch "Creating Neo4j Graphs in java" New topic

Creating Neo4j Graphs in java

ashwini hirlekar

Joined: Apr 01, 2014
Posts: 8
I am creating unique neo4j nodes in java class based on column values in database. column value will be assigned to each node. Code is as follow:
public void createNode(String name) {
GraphDatabaseService graphDb = new EmbeddedGraphDatabase("D://NewGraph");
Transaction tx=graphDb.beginTx();
Node nodeName;
nodeName = graphDb.createNode();
nodeName.setProperty("name", nodeName);

i have already added neo4j.kernel-1.6.M01.jar but still i am getting an error "DynamicLabel cannot be resolved". please guide.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
I know nothing about neo4j, but a quick check of the 1.6 javadocs shows that it does not contain such a class - it may have been added later. Why are you using such an old -and even pre-release!- version of neo4j?
I agree. Here's the link:
subject: Creating Neo4j Graphs in java
It's not a secret anymore!