We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

faustin
Posts: 4
Joined: Mon Jan 28, 2019 1:27 pm

How to embed Database to a java .exe file so as i successfull installed and run in a computer that do not have MySQL

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.


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?
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: How to embed Database to a java .exe file so as i successfull installed and run in a computer that do not have MySQL

Hello Faustin,
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) ?
I am afraid that is not possible.

However, you can add MySql Server as a prerequisite in your setup and that should do the trick.

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”