Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Correctly distributing a Java application with database

I have this Java application which uses a MySql Database which I want to distribute. My concern is that, to distribute this application I'll need to make the assumption that the target system has both JRE and MySql Server installed.

Is there any way I could bundle my application with the JRE and the MySql server so that if they aren't already present on the system, my app can install them and then run the application?

like image 703
Anurag Ramdasan Avatar asked Jan 16 '23 22:01

Anurag Ramdasan


1 Answers

No you should not bundle them and deliver them as part of your installation because of licensing.
This applies to both Oracle JRE and MySQL.

Update after @Stephen C comment.
It seems that it is possible to redistribute the JRE provided certain circumstances.It is illadviced though for the reasons that are explained in Stephen C answer. I have seen these issues arise in practice.
End Update

I am not sure what is the "safest" path (safest related to licensing issues).
Perhaps an installer that downloads them on the spot as part of the required components is ok.Friends here can correct me if I am wrong on this

like image 65
Cratylus Avatar answered Jan 20 '23 15:01

Cratylus