I have a JAR file that contains all my executable code, as well as an embedded database file. ...
It's odd that what I posted didn't work
. Do you start the application with
java -jar ? If so, then the ClassLoader should be able to pick up any resourse in the jar with class.getResource(path). Try this and see if it works:
That's assuming that dbFile.db is in the root of the jar. If it is not, then give a relative path instead of an absolute path (contrary to what I posted).
Michael Morris
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher