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

tls over tor connectToHiddenService() Couldn't connect to an introduction point of
Creating an array of ArrayLists in java [duplicate]
Adding more stuff to SQLite Database
How can I left join a subquery in hibernate with criteria?
how to get space as a input in String in java and use as it as null
Trying to convert huge JDF.xsd with xjc, but failed
error: no suitable method found for toString(String)
JSONException String cannot be converted to JSONArray
Jittering when trying to move undercorated JFrame
Can't use method from another class?
How do I pause this Ball?
How do I read doubles from a text file
MapReduce application counter outputs 1
Modifying a jar: ClassFormatError: Unknown constant tag
Same url mapping for controllers and repositories using Spring Data Rest
How to include the project name when passing the path to getResourceAsStream()?

Categories

HOME
server
comparison
appx
raspberry-pi
platform-builder
bpmn
bookshelf.js
razor
fsm
cross-browser
convolution
in-app-purchase
portia
webrequest
medical
kibana-4
circular-dependency
gz
dosgi
footer
solaris-10
nhibernate-envers
grails3
nas
zapier
visjs
riot.js
abi
trading
replaceall
ejabberd-module
subdomains
madlib
preg-match
functor
perlin-noise
protovis
avcapturesession
y86
amazon-kinesis-kpl
swisscomdev
unobtrusive-validation
midl
mime
.net-4.6.2
angular2-meteor
theming
ionicons
blogengine.net
return-value
mplayer
slickedit
worker-thread
knpmenubundle
spring-cache
chord-diagram
smart-table
messenger
cubes
firmata
color-picker
infix-notation
elements
bstr
apachebench
suffix-tree
nessus
itextpdf
javax.sound.midi
cartesian-product
lemon
google-places
jmeter-maven-plugin
mutation-observers
libressl
coveralls
responsive-images
php-ci
myo
method-parameters
system.reflection
tt-news
socketexception
elliptic-curve
marmalade
message-driven-bean
listings
dbconnection
dotnetnuke-5
easy-install
hungarian-algorithm
yui-compressor
bitsharp
mt
online-compilation
transactionscope
subgurim-maps
appender
gdlib
sproutcore-2
gamma
nsviewanimation
bespin
eqatec
xetex
noscript
grid-system
3gp

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App