Go Back   Java Programming Forums > Java Standard Edition Programming Help > JDBC & Databases


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 29-10-2009, 09:38 PM
Junior Member
 

Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
urosz is on a distinguished road
Default SQLite and Desktop Application

I have to make a Desktop Application with database ( SQLite )..

How do i setup sqlite?

+ I would like to make a *.db data which contains tables and then in java application i want to operate with this *.db file as a database. Is that ok and possible?



Reply With Quote Share this thread on Facebook
Sponsored Links
Java Training from DevelopIntelligence
  #2 (permalink)  
Old 30-10-2009, 08:40 AM
Json's Avatar
Super Moderator
 

Join Date: Jul 2009
Location: Manchester, United Kingdom
Posts: 1,157
Thanks: 54
Thanked 136 Times in 132 Posts
Json will become famous soon enoughJson will become famous soon enoughJson will become famous soon enough

I'm feeling Happy
Default Re: SQLite and Desktop Application

I'm not entirely sure how to set up SQLite but it cant be much different from the other database types out there, just make sure you have a connector for it.

You might also want to look into Apache Derby or db4o :: Java & .NET Object Database ? Open Source Object Database, Open Source Persistence, Oodb

// Json
Reply With Quote
  #3 (permalink)  
Old 30-10-2009, 09:49 AM
Junior Member
 

Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
urosz is on a distinguished road
Default Re: SQLite and Desktop Application

for sqlite you don't need apache or something

just create a database file and install sqlite driver for java

it's a "db in a file"
Reply With Quote
  #4 (permalink)  
Old 30-10-2009, 12:50 PM
Json's Avatar
Super Moderator
 

Join Date: Jul 2009
Location: Manchester, United Kingdom
Posts: 1,157
Thanks: 54
Thanked 136 Times in 132 Posts
Json will become famous soon enoughJson will become famous soon enoughJson will become famous soon enough

I'm feeling Happy
Default Re: SQLite and Desktop Application

Yeah, same goes for Apache Derby or DB4O as well. I was just recommending other ones you could use.

// Json
Reply With Quote
  #5 (permalink)  
Old 30-10-2009, 04:26 PM
Junior Member
 

Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
urosz is on a distinguished road
Default Re: SQLite and Desktop Application

i have a question.. how to install driver for sqlite?

into which maps i have to put sqlitejdbc-v056.jar?

and what classpaths to i have to setup?
Reply With Quote
  #6 (permalink)  
Old 31-10-2009, 08:45 AM
Junior Member
 

Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
urosz is on a distinguished road
Default Re: SQLite and Desktop Application

pleease help me:S
Reply With Quote
  #7 (permalink)  
Old 31-10-2009, 08:51 AM
Json's Avatar
Super Moderator
 

Join Date: Jul 2009
Location: Manchester, United Kingdom
Posts: 1,157
Thanks: 54
Thanked 136 Times in 132 Posts
Json will become famous soon enoughJson will become famous soon enoughJson will become famous soon enough

I'm feeling Happy
Default Re: SQLite and Desktop Application

You can either put the jar in your webapp/WEB-INF/lib folder or in your application server/lib folder.

// Json
Reply With Quote
  #8 (permalink)  
Old 31-10-2009, 10:37 AM
Junior Member
 

Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
urosz is on a distinguished road
Default Re: SQLite and Desktop Application

but if i take the application to another computer, it won't work
Reply With Quote
  #9 (permalink)  
Old 31-10-2009, 06:17 PM
Json's Avatar
Super Moderator
 

Join Date: Jul 2009
Location: Manchester, United Kingdom
Posts: 1,157
Thanks: 54
Thanked 136 Times in 132 Posts
Json will become famous soon enoughJson will become famous soon enoughJson will become famous soon enough

I'm feeling Happy
Default Re: SQLite and Desktop Application

Ship the jar with your app in the lib folder.

// Json
Reply With Quote
  #10 (permalink)  
Old 31-10-2009, 06:33 PM
Junior Member
 

Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
urosz is on a distinguished road
Default Re: SQLite and Desktop Application

what exactly do i have to do? i don't understand you (i'm a little bad at english)

damn i'm noob
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
application id not found pradeepsetty Java IDEs 3 02-06-2010 07:37 AM
Desktop Database Application TCoomer JDBC & Databases 2 04-06-2009 08:51 PM
which application server to choose? dewboy3d JDBC & Databases 0 21-05-2009 04:17 PM
webcam application startup BharatT Java Theory & Questions 1 29-04-2009 11:26 AM
How Many users Downloading My Application jazz2k8 Java Theory & Questions 2 03-07-2008 09:34 AM


100 most searched terms
Search Cloud
2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java addactionlistener addactionlistener java convert double to integer java double format java double to integer in java double to integer java drag en drop programmeren java eclipse shortcut keys exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double in java format double java get mouse position java java 2d arraylist java actionlistener java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming practice problems java send keystrokes to another application java two dimensional arraylist java.io.ioexception: premature eof java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton action jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics smack api two dimensional arraylist two dimensional arraylist java unable to sendviapost to url what is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

All times are GMT. The time now is 02:03 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.