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

Hadoop - Finding Unique Values in Text Files
how to repeatedly ask the user to input a sentence and it should stop if the user types END also should count the no. of words,vowels and non vowels
Android change the map fragment when entering a Geofence
ArrayIndexOutOfBoundsException after creating Arrays of Objects [duplicate]
using Stimulsoft in intellij idea and java language
Cassandra java driver connection error
Java How to read text file and input it into different ArrayLists
Opencv could not detect camera
How to maintain user object throughout the application using session in java
How to use save 2 editText to 2 spinners in same Activity
Jsp form submit with list to spring MVC controller
Why hibernate generates 'T_' prefix tableName during insert and delete operation?
Why it is possible to print “correctly” an Integer object in java? [duplicate]
How not to show the unknown/skipped results in extent report
Google AppEngine LocalServer and Queues
I did a Project in eclipse and I tried to to run it in cordova in cmd like.. Current working directory is not a cordova-based project

Categories

HOME
proxy
mfc
fft
google-oauth
c#-2.0
fingerprint
acquia
wamp
qore
add
facebook-messenger-bot
quicklook
u-sql
nstableview
google-apps-marketplace
google-cloud-spanner
messages
event-handling
tostring
paging
jquery-ajaxq
buildbot
fish
pepper
nhapi
greendao
libuv
c++-amp
quote
siesta-swift
typed.js
accelerate-framework
html5-fullscreen
disassembling
espeak
document.write
total-commander
qcombobox
jedis
errordocument
logparser
typescript1.8
namecoin
linode
cubes
abcpdf9
xml-attribute
flash-cs5
persist
php-parse-error
revolution-r
independentsoft
wireshark-dissector
spidermonkey
iis-arr
jqgrid-formatter
angular-leaflet-directive
riak-cs
cakephp-3.1
csquery
javafx-webengine
rdtsc
code-access-security
terminfo
google-reader
yorick
expected-exception
seaside
tidy
opcache
gwt-rpc
isnullorempty
cisco-jtapi
gdata-api
runas
labwindows
tridion-worldserver
errai
viewswitcher
work-stealing
adk
eclipse-templates
table-footer
ecl
disclosure
actionview
xfbml
html-input
getresponsestream
jquery-ui-droppable
xsdobjectgen
firefox-5

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile