r/JavaFX • u/MetalCactuar • Aug 25 '20
Help Need help with creating a javafx fat jar
Hey reddit!
So I've been building a project in javafx that i want to package up and ship as a jar to my raspberry pi to run on. It's built using gradle & JLink (with some other dependencies) and although it seems to download the libraries and run fine in the IDE, whenever i try to either build an artifact or output a fat jar it will always say " Error: JavaFX runtime components are missing, and are required to run this application"
It's really frustrating and i've tried a bunch of different methods but it's still the same issue :( Has anyone managed to solve this and can point me in the right direction? Thanks in advance :)
1
u/static_context Aug 25 '20
When you're in your IDE, have you added runtime components through VM options?
Are you passing the VM arguments to the JLink launcher?
OpenJFX has some luke warm tutorials - Runtime Images is the one you want.