Application wont write to MS DB
I have created a Java desktop application wh开发者_如何学运维ich reads and should write to a Microsoft Access DB.
The application works fine before I convert it to a .JAR
after which it can only read from the DB but doesn't write to it.
Any ideas on how to solve this issue?
I am guessing you've included the database file in the JAR file itself. Simply put, although you can get a URL to read a file from inside a JAR, you can't write to one. You're going to need to take the database (MDB file?) out of the JAR and put it in on the actual filesystem if you want to write to it.
精彩评论