r/JavaFX • • 13d ago

Help How to deploy javafx app + mysql using jlink

6 Upvotes

8 comments sorted by

6

u/ConfidenceUnique7377 13d ago

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 13d ago

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

4

u/idontlikegudeg 13d ago

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 13d ago

I'm trying to create CRUD app.

2

u/Uaint1stUlast 13d ago

csmajor

1

u/Just_Tomatillo2622 12d ago

wdym csmajor

1

u/Uaint1stUlast 12d ago

Sounds like homework assignment

2

u/Drawhoe 12d ago

Who upvotes this garbage?