yashbinani
yashbinani

Reputation: 387

Java based Standalone application

I am developing a standalone application for a client using Java Swing and jdbc with MySQL. I am using MySQL as the database.I want to know that how the client can install MySQL, is there a way by which the client can install MySQL in his machine,or can i distribute the MySQL setup.The client just needs the software running and do not want to go to any installation process.

What is the way around with that??

Upvotes: 0

Views: 4218

Answers (4)

01es
01es

Reputation: 5410

This might not be the simplest solution, but it is a good idea to have an installer for your application, which would take care of MySQL installation. IzPack is a very reasonable installation tool, which can execute external applications (e.g. MySQL installer) as part of the installation process. This discussion might be of some interest.

However, as mentioned in other replies, the use of an embedded RDBMS such as H2, SQLite etc., is a better choice than MySQL for a standalone application.

Upvotes: 2

Joshua Martell
Joshua Martell

Reputation: 7202

You're likely to find H2, HSQLDB, Derby, or SQLite to be more suitable for your deployment. They're intended to be embedded in other applications.

Upvotes: 2

h3xStream
h3xStream

Reputation: 6641

Few portable database alternatives: Derby, SQLite.

Upvotes: 1

Andrew Thompson
Andrew Thompson

Reputation: 168845

Use Java Web Start to launch the app.

The MySQL installer can be invoked from an installer-desc element in the launch file. Here is my demo. of the JNLP API ExtensionInstallerService.

Upvotes: 3

Related Questions