Meaningless Drivel is fun!*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "SQLite database deployed in Application Jar" Watch "SQLite database deployed in Application Jar" New topic
Author

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.

Thanks,
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
Sheriff

Joined: Oct 27, 2005
Posts: 19556
    
  16

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SQLite database deployed in Application Jar
 
Similar Threads
Lists inside SQLite
Report generator
Help
Android - update SQLite
issue related to JTable and SQLite database