File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes SQLite database deployed in Application Jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "SQLite database deployed in Application Jar" Watch "SQLite database deployed in Application Jar" New topic

SQLite database deployed in Application Jar

Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Hi All,

I'm curious, is it possible to deploy SQLite database in our Application Jar?
Actually, i want to do this since, i want to create small application which uses SQLite database as my temporary database.
Rather than i will have to store SQLite database in particular directory, i prefer to store it inside application jar.
Is it possible to do this?

Please help me regarding this.

With warmest regards,

Leonardo Carreira

Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Rob Spoor

Joined: Oct 27, 2005
Posts: 19720

The database will be read-only, as it's not possible to write directly to files inside ZIP and JAR files.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: SQLite database deployed in Application Jar