Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No suitable driver found for jdbc:sqlite #5

Open
vemonet opened this issue Dec 6, 2018 · 1 comment
Open

No suitable driver found for jdbc:sqlite #5

vemonet opened this issue Dec 6, 2018 · 1 comment

Comments

@vemonet
Copy link
Contributor

vemonet commented Dec 6, 2018

We are trying to convert a SQLite database (the chinook.db example) but r2rml is having trouble finding the driver

2018-12-06 15:16:46 ERROR R2RMLProcessor:98 - Error connecting to database.
java.sql.SQLException: No suitable driver found for jdbc:sqlite:/data/chinook.db
	at java.sql.DriverManager.getConnection(DriverManager.java:689)
	at java.sql.DriverManager.getConnection(DriverManager.java:208)
	at r2rml.engine.R2RMLProcessor.createDatabaseConnection(R2RMLProcessor.java:90)
	at r2rml.engine.R2RMLProcessor.execute(R2RMLProcessor.java:39)
	at r2rml.Main.main(Main.java:59)
@vemonet
Copy link
Contributor Author

vemonet commented Sep 27, 2019

If anyone needs it, we use

<dependency>
  <groupId>org.xerial</groupId>
  <artifactId>sqlite-jdbc</artifactId>
  <version>3.23.1</version>
</dependency>

And import in Main class:

try { Class.forName("org.sqlite.JDBC").newInstance(); } catch(Exception e) {e.printStackTrace();};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant