I have created a Swing application that uses SQLite as a local database. The database file is located in project's root directory.
The application runs fine on Eclipse, but when I run the packaged executable Jar, I get the following error:
No such table : table1
This means that the database is not reachable. When I examined the contents of the resulting JAR file, the database file was not there anymore.
In the code, I've linked the database as follows:
My question is, how to include the SQLite database in the executable Jar?