Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

database in desktop application using swing

I am making a desktop application in java and using MSAccess in data base. I want that if i run the setup of the application the database should be created on client machine because there can be different client using the application and how can i create the setup? is there any tools available for this free of cost? please explain me in detail.. thanks

like image 790
pratap Avatar asked Feb 20 '26 23:02

pratap


2 Answers

Java 6 (enhanced for desktop application work) comes with a built-in database called JavaDb (formerly IBM's Derby). That will do what you want.

Here's a set of guides and tutorials on how to use it.

I would suggest that when your application first starts, it checks for the presence of the created database, and if it doesn't exist, it builds the database (via the appropriate SQL). I've used this approach before and it works quite well.

like image 159
Brian Agnew Avatar answered Feb 23 '26 14:02

Brian Agnew


I prefer nullsoft. Take a look at Open Source Installers Generators in Java

@pratap: database should be created on client machine..

Add an empty access database to your setup.

like image 33
KV Prajapati Avatar answered Feb 23 '26 12:02

KV Prajapati