I'm encountering this error
java.sql.SQLException:[SQLITE BUSY] The database file is locked (database is locked)
every time I run my jar file that I built. It's fine when I'm running it from my netbeans though. I already tried closing the resultset and preparedstatement but it still shows up when I'm running the jar file. How can I get rid of this? Should I also close the connection?