JavaFX and Processing 3 P3D

It works when I am using only Processing.
But when I use my javafx app, since the core.jar of processing is different for the integration inside javafx, it crashes.
Any idea of how I could workaround this ?