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

Images are changing in ListView while scrolling in Android
Android Play Market install first run only class not found
using compareTo with maps in java
How to provide username password when using Restful api in java?
java - memory on virtual machine [duplicate]
Getting Access token from GooglePlus Sign in
How to set scheduled notification for selected day of every month
Alfresco - Methods to get Attachement
How to replace the value of array using separate method?
Accessing static variable of a finished activity.(Android)
How to declare class name with arraylist value?
The screenshot does not get saved in the directory in Selenium
Why cast in a Stream<E>? [duplicate]
How to use a configuration property in an annotation (as parameter)?
CXF web client working from Eclipse - ClassNotFoundException RuntimeBuiltinLeafInfoImpl when started as jar
android gridview subitems start activity onclick

Categories

HOME
zeromq
mediawiki
mockito
include
hashmap
syntax
react-redux
cross-browser
serverspec
paradox
android-youtube-api
contact
elasticsearch-hadoop
modx-revolution
gz
graphlab
flux
shared-hosting
jasonette
sylius
pass-by-reference
captiveportal
lcd
p-value
buildbot
ping
atlassian-crucible
scorm2004
repo
y86
stacked
multilingual
vapor
jna
temporary-files
bootstrapper
pdf-reactor
android-mediaprojection
thin
galleria
pubmed
multipeer-connectivity
hendrix
brightcove
csound
spring-mongodb
orthogonal
migradoc
time-and-attendance
vmware-tools
slicknav
thrust
ubuntu-10.04
sdf
unity-networking
separator
metaclass
responsive-images
ios9.1
cisco-ios
fscommand
sgen
access-rights
web2py-modules
typoscript2
nsmanagedobject
xmlspy
f#-powerpack
file-comparison
infrastructure
filtered-index
bespin
adrotator
ctp4
phonon

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