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

Running job in hadoop- ERROR security.UserGroupInformation
Obtain specific part of URL
Spring - Embdedded H2 Test Db
How would I display an Image, and overlay a button in Java? [duplicate]
How to change textview text from another activity on button click in android studio?
Three-level nesting in elasticsearch
InvalidSelectorException - Selenium Webdriver support to recognize accent letters
Form validation with Spring Security login page
Python - IPython Notebook fails to find the Java executable
JBehave reuse steps from dependent projects
Spring boot + JPA - SharedEntityManagerCreator opens sessions at startup
Java Two-Dim Array
JAXB XML Required Field Validation
How to handle Activemq's max frame size exception with failover transport
Build fails after updating to gradle 3.3
Correct Threading approach to log analytics

Categories

HOME
hive
vbscript
omnet++
zeromq
minimum-spanning-tree
google-api-php-client
octobercms
spring-cloud-stream
tizen-web-app
rubygems
jpeg
icloud
ezpublish
mouse
bs4
applepay
primary-key
python-unittest
tomcat6
floating-action-button
google-apps-marketplace
windows-server-2012
try-catch
lombok
django-cms
crystal-reports-2008
swingx
kryo
web-sql
tapestry
smb
pepper
kannel
brunch
fifo
msys2
vision
frame
stormpath
uisplitview
semantic-versioning
oracle-fusion-middleware
ioio
google-sites-2016
noraui
typed.js
vsts-build-task
openoffice.org
azure-sql-database
plsql-psp
disassembling
web-mining
serverside-rendering
twitch
graphenedb
broadcastreceiver
gzipstream
scorm
apple-news
revapi
python-webbrowser
ionicons
typed-lambda-calculus
android-cursor
objective-c-swift-bridge
adxstudio-portals
fody
merge-conflict-resolution
bstr
player
blackberry-10
packagist
two-factor-authentication
intel-fortran
feedback
spidermonkey
content-length
pundit
coveralls
service-accounts
sailfish-os
key-management
skos
gui-test-framework
android-nested-fragment
googlemock
contenttype
kgdb
fmod
jmapviewer
soundtouch
opcache
gridcontrol
padarn
limejs
free-variable
dmoz
dice
nsmanagedobject
subscript
transactionscope
xtype
yetanotherforum
sql-server-profiler
mongomapper
sudzc
.nettiers
routedevent
preference
firefox4
uimenucontroller
sustainable-pace
gacutil
zune

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