Pagine

Saturday, 5 March 2016

Neo4j: how to use neo4j jdbc driver in Java

Here's a tutorial on how to connect to Neo4j graph database using org.neo4j.jdbc.Driver and Java.

What we do in the following code is to:

  1. Set user and password strings
  2. Check for the driver in referenced libraries
  3. Establish the connection



Note that user and password strings are here hardcoded, as server port and address.
A better way to set them is using a property file as showed in our tutorial

55 comments:

  1. Day by day I am getting new things and learn new concept through your blogs, I feel very confident, thanks for your informative blog keep your post as updated one...
    Regards,
    JAVA Course in Chennai|Best JAVA Training in Chennai

    ReplyDelete
  2. I have read your blog its very attractive and impressive. I like it your blog.

    Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

    Java Online Training Java Online Training Core Java 8 Training in Chennai Core java 8 online training JavaEE Training in Chennai Java EE Training in Chennai

    ReplyDelete
  3. The expansion of internet and intelligence in business process lead the way to huge volume of data. It is important to maintain and process these data to be efficient in data handling. Hadoop Training in Chennai | Big Data Training in Chennai

    ReplyDelete
  4. Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog. Java Training in Chennai

    ReplyDelete
  5. really you have posted an informative blog. it will be really helpful to the peoples who are all working under the technology. thank you for sharing such kind of an interesting article.
    java training in chennai

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Great post! I am actually getting ready to across this information, It's very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
    Java Training in Chennai

    ReplyDelete
  8. Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts, have a nice weekend!


    Java Training in Chennai


    Java Training in Bangalore


    Java Training in Bangalore

    ReplyDelete
  9. There are so many useful information in your post, I like it all the time. And I want to share this boost app ranking with you, you can take a look. This is very useful.

    ReplyDelete
  10. Thanks for sharing this good blog.This is very important and imformative blog for Java .It's very interesting and useful for students
    Java Online Training Hyderabad

    ReplyDelete
  11. Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog...Java Training in Chennai
    Java Training Institute in Chennai

    ReplyDelete
  12. Really it was an awesome article...very interesting to read..You have provided an nice article....Thanks for sharing..
    Read more about Java training in delhi, java programming in delhi

    ReplyDelete
  13. Thanks for sharing this good blog.It's amazing blog Core Java Online Training Hyderabad

    ReplyDelete
  14. This concept is a good way to enhance the knowledge.thanks for sharing. please keep it up Java online training Bangalore

    ReplyDelete
  15. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your blog.
    iPhone training courses in bangalore
    iPhone training courses in bangalore

    ReplyDelete
  16. Very nice post to keep sharing... Thanks for giving very nice information from your post… Java Training in Chennai | RPA Training in Chennai

    ReplyDelete
  17. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    Data Science Training in Chennai
    Data science training in bangalore
    Data science online training
    Data science training in pune

    ReplyDelete
  18. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    Devops training in Chennai
    Devops training in Bangalore
    Devops Online training
    Devops training in Pune

    ReplyDelete
  19. I and my friends were going through the nice, helpful tips from the blog then the sudden came up with an awful suspicion I never expressed respect to the website owner for those secrets.

    ccna training in chennai



    ccna training in bangalore


    ccna training in pune

    ReplyDelete
  20. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    java training in chennai | java training in bangalore

    java training in tambaram | java training in velachery

    java training in omr | oracle training in chennai

    ReplyDelete
  21. Amazing blog about the various informative information on the programming languages... Java Training in Chennai | Blue prism Training in Chennai

    ReplyDelete

  22. Nice blog..! I really loved reading through this article. Thanks for sharing such a amazing post with us and keep blogging...


    Best Data Science online training in Hyderabad

    Data Science training in Hyderabad

    Data Science online training in Hyderabad

    ReplyDelete
  23. At this time, it seems like Word Press is the preferred blogging platform available right now. (from what I’ve read) Is that what you’re using on your blog? Great post, however, I was wondering if you could write a little more on this subject?
    Best AWS Training in Marathahalli | AWS Training in Marathahalli
    Amazon Web Services Training in Anna Nagar, Chennai |Best AWS Training in Anna Nagar, Chennai

    ReplyDelete
  24. I read this post two times, I like it so much, please try to keep posting & Let me introduce other material that may be good for our community.
    python training in velachery
    python training institute in chennai

    ReplyDelete
  25. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information. 
    DevOps online Training
    Best Devops Training institute in Chennai

    ReplyDelete
  26. A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article. I am learning a lot from you.

    rpa training in electronic-city | rpa training in btm | rpa training in marathahalli | rpa training in pune

    ReplyDelete
  27. It’s always so sweet and also full of a lot of fun for me personally and my office colleagues to search you blog a minimum of thrice in a week to see the new guidance you have got.
    safety course in chennai

    ReplyDelete
  28. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
    Devops Training courses
    Devops Training in Bangalore
    Best Devops Training in pune
    Devops interview questions and answers

    ReplyDelete
  29. Your post is really awesome. Your blog is really helpful for me to develop my skills in a right way. Thanks for sharing this unique information with us.
    - Learn Digital Academy

    ReplyDelete
  30. Were a gaggle of volunteers as well as starting off a brand new gumption within a community. Your blog furnished us precious details to be effective on. You've got completed any amazing work!

    Java interview questions and answers

    Core Java interview questions and answers

    Java training in Chennai | Java training in Tambaram

    Java training in Chennai | Java training in Velachery

    ReplyDelete
  31. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
    python course institute in bangalore
    python Course in bangalore
    python training institute in bangalore

    ReplyDelete
  32. Thanks for your interesting ideas.the information's in this blog is very much useful
    for me to improve my knowledge.
    vmware Training in Anna Nagar
    vmware courses in Anna Nagar
    vmware Training in T nagar
    vmware Certification Training in T nagar

    ReplyDelete
  33. Really amazing information!!! Thanks for your blog.

    Education
    Technology

    ReplyDelete
  34. This is really too useful and have more ideas and keep sharing many techniques. Eagerly waiting for your new blog keep doing more.
    Aws Training in Bangalore
    Aws Course in Bangalore
    Best Aws Training in Bangalore
    hadoop classes in bangalore
    hadoop institute in bangalore

    ReplyDelete