Am developing a Java software which should be used on a raspberry pi. Now the Raspi sadly doesn't officially support JavaFx anymore, even if one can add it manually.
My software is mostly usable without JFX too and is intended to disallow using certain functions when JFX is not available.
The problem however is that I get NoClassDefFoundError exceptions regarding JFX although no function is meant to be executed.
It hasn't been possible for me to narrow down exactly what line causes the exception because it is not replicable on PC (only on the raspberry) and the given line and class is very confusing. The line definitely does not call anything JFX related but it uses a static call to class which does require JFX for other functions (not the one called).
I am assuming that the reason is already the "import" call or the fact that the return type of some functions (which are not called!) have JFX datatypes.
Does anyone have an idea how to circumvent this fairly big issue? Huge thanks in advance!