Reputation: 327
I have created a Java desktop application which 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?
Upvotes: 0
Views: 118
Reputation: 81724
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.
Upvotes: 3