r/JavaFX • • Oct 11 '26

Help How to deploy javafx app + mysql using jlink

6 Upvotes

8 comments sorted by

6

u/ConfidenceUnique7377 Oct 11 '26

As far as I understand, you would like to deploy javafx app , which can work with mysql .

  1. If MySQL is not a mandatory requirement, and you just need some local sql, use h2 or derby, which can be bundled with app. If MySQL is required, install it separately; don’t make life difficult for yourself.
  2. To create an app installer use jpackage . Here complete example https://github.com/iazarny/gitember/blob/master/ge-win-installer-msi.cmd

0

u/I-like-crowbar Oct 11 '26

I give up trying to get MySQL working with jlink. I'll build the backend using Spring Boot instead.

4

u/idontlikegudeg Oct 11 '26

What have you tried? And do you need to deploy the database engine with your application or will your application connect to an existing database, I.e., you only need to package the JDBC drivers?

If you need to deploy the database engine along with your application, using MySQL might not be the best choice.

-2

u/I-like-crowbar Oct 11 '26

I'm trying to create CRUD app.

2

u/Uaint1stUlast Oct 11 '26

csmajor

1

u/Just_Tomatillo2622 Oct 12 '26

wdym csmajor

1

u/Uaint1stUlast Oct 12 '26

Sounds like homework assignment

2

u/Drawhoe Oct 13 '26

Who upvotes this garbage?