I have an application that I am implementing as an executable JAR file. Basically, this JAR file will communicate with a MySQL database but recently I have decided that I want to go with SQLite instead. However, while testing, I found that I can not use my SQLIT database file when my application is run from the JAR file.
I am using a JDBC driver from the following website:
Do I have an alternative solution?
The eclipse environment, but the standalone in a JAR file does not work. Any help would be greatly appreciated.
OK, here's the "work directory". This is the directory from which your app is started. Therefore, each "relative" path in your application is generally relative to this "working directory."
Now come back to your problem when you set the path to a file, you can make it relative to either relative, full or jar internal directory root, depending on how you make the file And set paths.
So, check the bus path in your application and try to use the relative to run the application from the appropriate directory.
Comments
Post a Comment