This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 20049

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
jQuery in Action, 3rd edition