dimanche 11 octobre 2015

Put SQLite inside java swing project directory

I want to put my sqlite database file inside my swing project, and hope the compiled .jar will contain the DB already. My database should be put at:

/src/
/db/mydb.sqlite

My database URL string is

static final String DB_URL = "jdbc:sqlite:\\DB\\mydb.sqlite";

But it seem my application cannot recognize the file

Aucun commentaire:

Enregistrer un commentaire