java


No suitable driver found for jdbc Neo4j


I already checked the other question about my issue, but none of them solved.
I imported the Neo4j Jar by configuring the build path, but still I get this error.
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class TestNeo4j {
public static void main(String[] args) throws SQLException {
Connection c = DriverManager.getConnection("jdbc:neo4j://localhost:7474/", "neo4j", "neo4j");
Statement st = c.createStatement();
String cql = "match (m)-[:IS_ALLERGIC_TO]->(n:Product) where n.name = 'gluten' return m.name";
ResultSet rs = st.executeQuery(cql);
while(rs.next())
System.out.println(rs.getString(1));
c.close();
}
}
This is my code. Can you figure out what the problem is?
As suggested here, use neo4j jar with dependencies (neo4j-jdbc-2.1.4-jar-with-dependencies.jar).
You can grab it from neo4j release repository, here

Related Links

Thread.sleep() with synchronization in java
ADB - how does it work?
Implementation of Atomic wait in Java
Need enough information about stateless session in hibernate
How to auto generate overlapping integers in a certain range
How to Copy file in Server page with out reading
iReport - java.lang.ClassNotFoundException
Android API like java.awt.Robot
Dynamically casting to primitives in Java
how to add a round border to a jradiobutton
how to print logs in tomcat servlet application
Getting Hibernate mapping exception with java.util.list
Inherent dangers of using ThreadLocal variables with EJB3?
Can you explain this Java hash map key collision?
Environment variables passed by Runtime.exec(String)
How to prepare Business Objects for possible expansion in web services

Categories

HOME
ms-access
openlayers
blogger
minimum-spanning-tree
angular-material
plot
dot
adb
paw-app
frameworks
icloud
windows-server
in-app-purchase
bs4
slurm
iggrid
tomcat6
postgres-xl
progressive-web-apps
interop
php-openssl
hammerspoon
emgucv
social-media
primitive
quote
librato
tinymce-4
galsim
hybridauth
android-nestedscrollview
x11-forwarding
espeak
withings
jna
user-controls
preconditions
elmah
eigenvalue
thin
websphere-mq-fte
menuitem
apache-fop
atomicity
jquery-nestable
datastax-startup
winscp-net
togetherjs
yii2-extension
windows-mobile-6.5
pearson
python-cryptography
epson
account-kit
pycaffe
httplistener
underscore.js-templating
websitepanel
associative-array
xna-4.0
google-places
comobject
sysinternals
vstest.console.exe
unity3d-gui
dereference
operator-precedence
asp.net-dynamic-data
javafx-webengine
mesa
prettify
geos
xsockets.net
tws
plasma
smtp-auth
distutils
dmoz
jquery-knob
trusted
venn-diagram
multipage
viewswitcher
qtkit
buildr
gdlib
cxxtest
getresponsestream
nsviewanimation
bespin
perfect-hash
adrotator
ctp4
premature-optimization
sustainable-pace
uiq3

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App