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

How to change user in hdfs using sparkSubmit in java
What is the difference between Files.walk.filter and Files.find?
Java: Filtering Panels like a JTable
Auto Extracting XPATH of all html elements using JAVA
How to convert em dash in java
Is Java's import keyword for source files or binary files?
PostgreSQL function to insert into tables.. i need it to return specific values on errors and on specific if conditions
Have to click twice to get number, Java program not working as intended
Eclipse Java Compiler Errors
JSPExpression Language reading value from bean
Switch case not returning string
Get selected cell object in datatable using different lists for each column [duplicate]
Trouble getting a Java Applet program to open in my browser
NoNodeAvailableException[None of the configured nodes are available] in Elasticsearch 5.1.2
SPRING #RestController: Passing Cookie to a Service from Every Method
Updating version numbers of modules in a multi-module Maven project where the aggregate root isn't a parent pom

Categories

HOME
pandas
jdo
google-play
raspberry-pi
rsync
yahoo-oauth
react-redux
sqlite3
ojdbc
medical
facebook-php-sdk
communication
vifm
ssl-client-authentication
rascal
nstableview
fortumo
fallback
zebra-printers
jsprit
oracle-coherence
normalizr
lucene.net
excel-2007
file-rename
unboundid
react-chartjs
bosh
twilio-api
contact-form
webtest
textmate
wallpaper
hexo
android-ble
mixture-model
objectlistview
az-application-insights
sqlite2
impersonation
streamreader
hp-ux
fedex
reportingservices-2005
quadratic-programming
google-closure
spring-security-kerberos
segment
wptoolkit
zip4j
sage-one
rdfs
mplayer
elgg
drupal-6
colorama
forever
magma
crosswalk-runtime
file-writing
ready-api
sdf
bluemix-app-scan
php-parse-error
pyke
microbenchmark
sortedlist
pretty-print
xcode-6.2
php-5.4
reactfx
meteor-velocity
openlaszlo
imdbpy
dotnetnuke-5
bulkloader
mqx
delphi-6
angularjs-controller
bitsharp
viewswitcher
spring-portlet-mvc
netdna-api
boost-filesystem
fireworks
hirefire
vdsp
gcj
infobox
django-tagging
radcombobox
digest-authentication
vc90
xetex
gacutil
genealogy
.net-1.0

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