AMS91
AMS91

Reputation: 175

How to Run a Java Application Using MySQL DB on a Computer Without MySQL Installed?

I created a java application that is a front end for a MySQL Database using NetBeans and JDBC.

Now after creating the jar file it runs smoothly on my computer (Since I have the MySQL installed) but, if I run the jar on a different computer it won't work since it does not have the DB the application is using and not even MySQL installed.

So the question is, is it possible to add the database to the executable jar so it will run on any computer without the need for any installation of any software (Except for JRE of course) ?

If yes, how do I go about doing so?

Thanks everyone for the help in advance.

Upvotes: 0

Views: 1705

Answers (2)

Laxminarayan
Laxminarayan

Reputation: 198

If you purely want to use the database without using the MySql then simply using the collections to create database, then you doesn't need any other database client as like MySql. But you need knowledge of Hibernate, Spring etc.

Upvotes: 0

Zack Schulfler
Zack Schulfler

Reputation: 78

Use derby database. It already included in JDK's db folder when you installed the Java on your computer.

Upvotes: 1

Related Questions