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

Algorithm and query for calculating 6 - degree of separation with pl/sql?
Select an object on the basis of its minimum attribute value from list in Java
How to find the number of weeks in a month? [duplicate]
Hibernate sessionFactory.getCurrentSession() without #Transactional
How do I change the background image on all of my screens and keep the changes
why Hibernate Session behavor like this
Searching by Index in a LinkedList
Tic-Tac-Toe Board not updating with player move
How to read SSH2 binary packets in Java?
JOptionPane showInputDialog null?
PlacePicker activity doesn't call `onActivityResult` when nothing is selected
How to check the increase count beside a field using webdriver/Java?
Playframework does not start
Get a String from a JTextField through a JButton
executable jar console, where are my println()?
Cannot find symbol error in cmd but not in IDE

Categories

HOME
testng
spagobi
cvs
binary-tree
constraint-programming
ios-charts
esper
volttron
offline
zend-framework3
leiningen
evopdf
beyondcompare
alpine
immutable.js
zapier
cx-freeze
functional-testing
graphicsmagick
apache-commons-io
react-css-modules
virtualdub
fgetcsv
web-api-testing
gitignore
react-chartjs
http-status-code-503
form-data
accelerate-framework
y86
http-digest
overlap
event-driven
occlusion
nxlog
jlink
togetherjs
setter
carrot
font-size
sqlbulkcopy
google-cdn
deadbolt-2
azure-sdk
intrusion-detection
ctest
gridview-sorting
connect-by
ubuntu-10.04
essence
packagist
bluegiga
uid
riak-cs
myo
system32
winddk
phalanger
codeigniter-routing
code-access-security
project-planning
doskey
jboss-weld
transcoding
mbr
inbox
runtime.exec
coverflow
opcache
ftps
bulkloader
buster.js
ember-app-kit
jelly
robotics-studio
selected
chuck
bluepill
broken-links
first-responder
appconkit
amazon-appstore
netdna-api
genshi
disclosure
modelstate
perfect-hash
meego
audio-capture
boost-smart-ptr
data-acquisition
document-conversion

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile