Access and modify db from within jar
If I package a application I wrote in java that writes and reads from an sql db into a jar and distribute, will the开发者_Go百科 program be able to write to the db, close, be run again later, and still be able to read the data it wrote in the last session?
Why not?
Although the idea of code executing from a JAR file modifying that JAR file makes me a little queasy. I personally would store the database outside the JAR file.
精彩评论