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

reading/writing avro file in spark core using java
Java Parse JSON Multidimensional Object element to String
How to slice String to two and transfer substrings to different functions?
Control when the scrolls in a ScrollPane show up
How to add retrofit library with proguardFiles minifyEnabled true in android?
Thread does not stopped using flag as volatile
Java: non-heap-memory analyzes
Throw an exception if a Stream has no result
Issues with accessing REST service from command line program
Set the location of the barcode with barbecue
How Can i post on stumbleupon using api
List Array detecting Non unique value
Instant velocity change LibGDX
What is the right approach to deal with JPA period queries?
IDE expects semicolon after curly braces [duplicate]
Unable get the location of all the dropdown boxes in a page using selenium with java

Categories

HOME
log4j
keras
appx
rsyslog
yahoo-oauth
cakephp-2.5
sql-server-2016
callback
angular-ui-bootstrap
podio
cloudkit
kibana-4
facebook-php-sdk
gnupg
ssl-client-authentication
row
alignment
usergrid
clearcase-ucm
reactive-cocoa
autocad-plugin
cx-freeze
errorlevel
cloudhub
arabic
kudan
autosys
qhull
cas
django-storage
virtualdub
react-chartjs
bcd
twilio-api
webtest
mozilla
gammu
sequential
overlap
libraries
abstract-class
ansible-playbook
azure-ml
ws-security
gzipstream
executenonquery
strptime
logparser
domain-model
powercli
feeds
specrun
objective-c-swift-bridge
jquery-filter
radtreelist
merge-conflict-resolution
bstr
clang-static-analyzer
ubuntu-10.04
fadeout
tform
libressl
content-length
riak-cs
deis
cakephp-3.1
notify
sorl-thumbnail
website-monitoring
html-helper
sgen
poller
cloud-connect
java.nio.file
html5-notifications
xsockets.net
ruby-datamapper
easy-install
gwt-rpc
selected
word-processor
wse3.0
netbeans-6.9
zpt
hamachi
yetanotherforum
disclosure
datareader
radcombobox
zend-translate
digest-authentication
routedevent
firefox4
sustainable-pace
procedural-music

Resources

Encrypt Message