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

#QueryParam always showing null
Error when customising JOptionPane Message Dialog Buttons
No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation
Inconsistent `w` symbol formatting from joda time to java.time
Can Java be installed as non-root user with Chef?
Get value from different class in android/java
Cannot connect mysql workbench to remote database
JavaEE: Custom class in a EJB remote interface
JavaFX - Bind LocalTime to TableColumn via Property
Can I get back subsets of fields from JDBI?
How to generate pdf report using thymeleaf as template engine?
Adding MySQL to my Java Program
Check Java String containing one alpha & numeric characters and one of these special characters(#, #,$) [closed]
Schedule a task to run at variable time interval
Cannot parse nodejs output of JSON.stringify in java using jackson lib
How to properly access a File in a gwtp service instance?

Categories

HOME
image-processing
homebrew
include
objectgears
gis
elm
twitter-bootstrap-4
survey
networkx
basic
metatrader4
u-sql
correlation
leiningen
libtiff
textfield
cx-freeze
sox
extjs5
zurb-foundation-6
format-specifiers
vlsi
status
bootstrap-material-design
msys2
jspm
jaxb2
r-raster
google-sites-2016
copying
hexo
plsql-psp
disassembling
retina-display
gesture
c11
streamreader
mesos-chronos
email-templates
glew
sencha-touch-2.3
apache-fop
revapi
paxos
rdfs
kbuild
dtexec
background-service
pintos
phishing
multi-level
mikroc
pcf
skobbler-maps
websitepanel
multiple-regression
actionbardrawertoggle
pagerank
two-factor-authentication
historian
metaclass
cakephp-3.1
responsive-images
createprocessasuser
pretty-print
modalpopup
clicktag
jsonpickle
tablelayout
cdt
cdc
buster.js
rdoc
javaspaces
mercurial-server
mod-auth
html-input
site.master
blitz++
web-architecture
sustainable-pace
putchar
post-build
dbisam
commodore
ntvdm.exe

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile