3

when I ran my program in eclipse I could have written to the derby table and query as well, but now I've build my executable jar file the program is only able to query the database anymore and the insert statement does not work at all. There can't be any coding mistakes as the query still works... is there maybe any lack of permission or something going on pls advise... tried many different things but nothing worked.

Scary Wombat
  • 44,617
  • 6
  • 35
  • 64
SmartCodeNoBugs
  • 51
  • 1
  • 10
  • if the file is on a RO filesystem it will be RO – Scary Wombat Jun 26 '17 at 02:13
  • so obvious when you mention it but I would never thought of this on my own !! Thank you :) but how do I request permission to write on the database on a Windows hard drive ... ? I'm using launch4j for the exe and Inno setup for the installer. is there any chance to request permission for writing on the database ( hard drive ) of the user who is using my program ? – SmartCodeNoBugs Jun 26 '17 at 02:31
  • Sorry it has been about 15 years since I last used Inno Setup, so I can not help. – Scary Wombat Jun 26 '17 at 02:33
  • 1
    I've figured it out on my own now, all I had to do was changing the default installation folder from the Inno setup wizard to any other folder than programs folder as it is of course read only on Windows ... simple as it is but thank you for always replying super quickly to my questions really appreciate the support – SmartCodeNoBugs Jun 26 '17 at 02:47
  • The correct solution is to install the application to `Program Files`, but database to a user profile or `ProgramData`. – Martin Prikryl Jun 26 '17 at 06:41

0 Answers0