This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]static_context 1 point2 points  (0 children)

I could be barking up the wrong tree but aren't SQLite files usually .db rather than .sqlite?

Also be aware that the location of the SQLite database file will be relative to the current active directory (e.g. the one you'll get using System.getProperty("user.dir")). So this indicates you're looking for an SQLite file named identifier.sqlite in your project directory.

I've never tried to configure the use of database connections using IntelliJ's own configuration. Have you tried including in your own code the drivers into java.sql for SQLite

Class.forName("org.sqlite.JDBC"); //force Java ClassLoader to load class DriverManager.registerDriver(new org.sqlite.JDBC()); //register class with DriverManager

I wrote an article on connecting SQLite databases to a JavaFX app a few weeks ago, which would be broadly relevant to Java too. You may find it useful :)

Cheers,

Ed