title: SQLite exception in java : attempt to write a readonly database
body: <p>I have created a java application having sqlite db(using netbeans). I have also created a .exe file, and the database is there in the folder containing the executable file. But when i run the .exe file, read operation is working fine. When i try updating or writing on to the db, am running into the following error:</p>
  
  <pre><code>java.sql.SQLException:[SQLITE_READONLY] Attempt to write a readonly database.
  </code></pre>
  
  <p>I tried searching for solutions, but I found solutions like changing the permissions.
  I did change the permissions of the db as well as the containing folder in windows. The error persists.</p>
  
  <p>Any help or suggestions will be greatly appreciated.</p>