I am working on a simple java app which is using a .sqlite database. The problem is that I don't know where to put the database in the MyProject/ folder and how to make a relative connection path, such that I can use it after I wrap the project into an .exe file. Any suggestions?
This is how I do it now. I have the following path MyProject/resource/EmployeesDatabase.sqlite
Connection conn = DriverManager.getConnection("jdbc:sqlite:resource\\EmployeesDatabase.sqlite");