Hi John,

I am facing the same problem as you were facing.Can you please help me out 
with the solution.



On Friday, 26 July 2013 19:19:14 UTC+5:30, John Smith wrote:
>
> I got it working, no need to skype.  I compiled it into a jar file and 
> then ran it rather than running the .java file.  I appreciate all your help 
> and the time you have put it. Thank you!
>
> On Thursday, July 25, 2013 1:54:18 PM UTC-4, Peter Neubauer wrote:
>>
>> We can skype tomorrow to sort it out if you want.
>>
>>
>> Cheers,
>>
>> /peter neubauer
>>
>> G:  neubauer.peter
>> S:  peter.neubauer
>> P:  +46 704 106975
>> L:   http://www.linkedin.com/in/neubauer
>> T:   @peterneubauer
>>
>> Kids in Malmö this summer?        - http://www.kidscraft.se
>> Neo4j questions? Use GraphGist. - 
>> http://<http://stackoverflow.com/search?q=neo4j>
>> gist.neo4j.org
>>
>>
>> On Thu, Jul 25, 2013 at 7:29 PM, John Smith <etha...@gmail.com> wrote:
>>
>>> I am certain...That is why this is so strange.
>>>
>>>
>>> On Thursday, July 25, 2013 12:53:43 PM UTC-4, Peter Neubauer wrote:
>>>
>>>> John,
>>>> on my machine, after doing
>>>>
>>>> brew install neo4j (installing Neoj4 1.9.2 into the system)
>>>>
>>>> I use that classpath to execute your code (removing cypher import 
>>>> statement)
>>>>
>>>> ➜  hello  javac -cp /usr/local/Cellar/neo4j/
>>>> community-1.9.2-unix/libexec/lib/neo4j-kernel-1.9.2.jar:/
>>>> usr/local/Cellar/neo4j/community-1.9.2-unix/libexec/
>>>> lib/geronimo-jta_1.1_spec-1.1.1.jar HelloWorld.java
>>>> zsh: correct '/usr/local/Cellar/neo4j/community-1.9.2-unix/libexec/
>>>> lib/neo4j-kernel-1.9.2.jar:/usr/local/Cellar/neo4j/
>>>> community-1.9.2-unix/libexec/lib/geronimo-jta_1.1_spec-1.1.1.jar' to 
>>>> '/usr/local/Cellar/neo4j/community-1.9.2-unix/libexec/
>>>> lib/neo4j-kernel-1.9.2.jar/usr/local/Cellar/neo4j/
>>>> community-1.9.2-unix/libexec/lib/geronimo-jta_1.1_spec-1.1.1.jar' 
>>>> [nyae]? n
>>>> warning: Supported source version 'RELEASE_6' from annotation processor 
>>>> 'org.neo4j.kernel.impl.annotations.ServiceProcessor' less than -source 
>>>> '1.7'
>>>> warning: Supported source version 'RELEASE_6' from annotation processor 
>>>> 'org.neo4j.kernel.impl.annotations.DocumentationProcessor' less than 
>>>> -source '1.7'
>>>> Note: HelloWorld.java uses or overrides a deprecated API.
>>>> Note: Recompile with -Xlint:deprecation for details.
>>>> 2 warnings
>>>>
>>>> Are you sure your file paths are correct?
>>>>
>>>> /peter
>>>>
>>>>
>>>> Cheers,
>>>>
>>>> /peter neubauer
>>>>
>>>> G:  neubauer.peter
>>>> S:  peter.neubauer
>>>> P:  +46 704 106975
>>>> L:   http://www.linkedin.com/in/neubauer
>>>> T:   @peterneubauer
>>>>
>>>> Kids in Malmö this summer?        - http://www.kidscraft.se
>>>> Neo4j questions? Use GraphGist. - 
>>>> http://<http://stackoverflow.com/search?q=neo4j>
>>>> gist.neo4j.org
>>>>  
>>>>
>>>> On Thu, Jul 25, 2013 at 6:07 PM, John Smith <etha...@gmail.com> wrote:
>>>>
>>>>> I can just post it here
>>>>>
>>>>>
>>>>> import org.neo4j.graphdb.GraphDatabaseService;
>>>>> import org.neo4j.graphdb.Node;
>>>>> import org.neo4j.graphdb.Relationship;
>>>>> import org.neo4j.graphdb.RelationshipType;
>>>>> import org.neo4j.graphdb.Transaction;
>>>>> import org.neo4j.graphdb.factory.GraphDatabaseFactory;
>>>>> import org.neo4j.kernel.EmbeddedGraphDatabase;
>>>>> import javax.transaction.TransactionManager.*;
>>>>> import org.neo4j.cypher.javacompat.*;
>>>>>
>>>>> import javax.lang.model.SourceVersion;
>>>>>
>>>>>
>>>>> public class HelloWorld {
>>>>>   Node first;
>>>>>   Node second;
>>>>>   Relationship relation; 
>>>>>   GraphDatabaseService graphDataService;  
>>>>>   
>>>>>   
>>>>>   
>>>>>   
>>>>>   
>>>>>   public SourceVersion getSupportedSourceVersion() {
>>>>>     return SourceVersion.latest();
>>>>>   }
>>>>>   
>>>>>   private static enum RelTypes implements RelationshipType
>>>>>   {
>>>>>     KNOWS
>>>>>   }
>>>>>   
>>>>>   public static final String DB_PATH= " /home/anas/graph/data/
>>>>> EmailRecordOfferRelationship.db/" ; 
>>>>>   
>>>>>   public static void main(String[] args) {
>>>>>     GraphDatabaseService graphDb = new EmbeddedGraphDatabase(DB_PATH);
>>>>>     Transaction tx = graphDb.beginTx();
>>>>>     try {
>>>>>        Node firstNode = graphDb.createNode();
>>>>>       Node secondNode = graphDb.createNode();
>>>>>       Relationship relationship =
>>>>>         firstNode.createRelationshipTo(secondNode, RelTypes.KNOWS);
>>>>>       
>>>>>       firstNode.setProperty("message", "Hello, ");
>>>>>       secondNode.setProperty("message", "world!");
>>>>>       relationship.setProperty("message", "brave Neo4j ");
>>>>>       tx.success();
>>>>>       
>>>>>       System.out.print(firstNode.getProperty("message"));
>>>>>       System.out.print(relationship.getProperty("message"));
>>>>>       System.out.print(secondNode.getProperty("message"));
>>>>>     }
>>>>>     finally {
>>>>>       tx.finish();
>>>>>       graphDb.shutdown();
>>>>>     }
>>>>>   }
>>>>> }
>>>>>
>>>>> On Thursday, July 25, 2013 12:06:54 PM UTC-4, Peter Neubauer wrote:
>>>>>
>>>>>> Can you share your project that contains your HelloWorld program, 
>>>>>> e.g. via Dropbox or Github?
>>>>>>
>>>>>>
>>>>>> Cheers,
>>>>>>
>>>>>> /peter neubauer
>>>>>>
>>>>>> G:  neubauer.peter
>>>>>> S:  peter.neubauer
>>>>>> P:  +46 704 106975
>>>>>> L:   http://www.linkedin.com/in/neubauer
>>>>>> T:   @peterneubauer
>>>>>>
>>>>>> Kids in Malmö this summer?        - http://www.kidscraft.se
>>>>>> Neo4j questions? Use GraphGist. - 
>>>>>> http://<http://stackoverflow.com/search?q=neo4j>
>>>>>> gist.neo4j.org
>>>>>>
>>>>>>
>>>>>> On Thu, Jul 25, 2013 at 6:04 PM, John Smith <etha...@gmail.com>wrote:
>>>>>>
>>>>>>> What do you mean?
>>>>>>>
>>>>>>>
>>>>>>> On Thursday, July 25, 2013 12:02:42 PM UTC-4, Peter Neubauer wrote:
>>>>>>>
>>>>>>>> Do you have the project somewhere in order to look at the setup?
>>>>>>>>
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>>
>>>>>>>> /peter neubauer
>>>>>>>>
>>>>>>>> G:  neubauer.peter
>>>>>>>> S:  peter.neubauer
>>>>>>>> P:  +46 704 106975
>>>>>>>> L:   http://www.linkedin.com/in/neubauer
>>>>>>>> T:   @peterneubauer
>>>>>>>>
>>>>>>>> Kids in Malmö this summer?        - http://www.kidscraft.se
>>>>>>>> Neo4j questions? Use GraphGist. - 
>>>>>>>> http://<http://stackoverflow.com/search?q=neo4j>
>>>>>>>> gist.neo4j.org
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Jul 25, 2013 at 6:01 PM, John Smith <etha...@gmail.com>wrote:
>>>>>>>>
>>>>>>>>> I am using java and the only files on my classpath are the two jar 
>>>>>>>>> files that I have mentioned
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thursday, July 25, 2013 11:30:45 AM UTC-4, Peter Neubauer wrote:
>>>>>>>>>
>>>>>>>>>> Sounds like a classpath problem.
>>>>>>>>>>
>>>>>>>>>> How are you running the program? Java? Maven? Eclipse? Check that 
>>>>>>>>>> the Neo4j files are on your execution classpath for the run.
>>>>>>>>>>
>>>>>>>>>> /peter
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>>
>>>>>>>>>> /peter neubauer
>>>>>>>>>>
>>>>>>>>>> G:  neubauer.peter
>>>>>>>>>> S:  peter.neubauer
>>>>>>>>>> P:  +46 704 106975
>>>>>>>>>> L:   http://www.linkedin.com/in/neubauer
>>>>>>>>>> T:   @peterneubauer
>>>>>>>>>>
>>>>>>>>>> Kids in Malmö this summer?        - http://www.kidscraft.se
>>>>>>>>>> Neo4j questions? Use GraphGist. - 
>>>>>>>>>> http://<http://stackoverflow.com/search?q=neo4j>
>>>>>>>>>> gist.neo4j.org
>>>>>>>>>>  
>>>>>>>>>>
>>>>>>>>>> On Thu, Jul 25, 2013 at 5:27 PM, John Smith <etha...@gmail.com>wrote:
>>>>>>>>>>
>>>>>>>>>>>  I keep getting this error when I try to run my java program for 
>>>>>>>>>>> HelloWorld: Exception in thread "main" java.lang.
>>>>>>>>>>> NoClassDefFoundError: org/neo4j/graphdb/GraphDatabaseService
>>>>>>>>>>>
>>>>>>>>>>> I am using the jar files: neo4j-kernel-1.9.1.jar 
>>>>>>>>>>> and geronimo-jta_1.1_spec-1.1.1.jar
>>>>>>>>>>>
>>>>>>>>>>> Any help will be appreciated!
>>>>>>>>>>>
>>>>>>>>>>> -- 
>>>>>>>>>>> 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 neo4j+un...@googlegroups.com.
>>>>>>>>>>>
>>>>>>>>>>> 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 neo4j+un...@googlegroups.com.
>>>>>>>>> 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 neo4j+un...@googlegroups.com.
>>>>>>> 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 neo4j+un...@googlegroups.com.
>>>>> 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 neo4j+un...@googlegroups.com.
>>> 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 neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to