Not sure if you can solve the JavaFX problem at all. I haven’t done any research on it, to be honest. You might experiment with Cryptomator CLI that works without a UI: https://github.com/cryptomator/cli
It’s currently in beta but you can share your experience with it and let us know if it works on Raspberry Pi.