开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜