|How to embed JavaFX into an Eclipse rcp plugin ? [message #1787312]
||Wed, 23 May 2018 14:46
| adrian m
Registered: May 2018
My goal is to have a swt ViewPart that includes a FXCanvas ,
but for the moment I have just a SWT button that attempts to launch a JavaFX application .
Inside the Eclipse IDE everything compiles and seems ok, but at runtime I get NoClassDefFound errors for all the javafx classes.
Obviously I've already tried to search for solutions online, but many of the articles are referring to different issues , or older versions when the javafx wasn't part of the jdk/jre.
What i've been able to understand is that my plugin doesn't have access to the javafx classes (even if the jdk contains the jfxrt.jar and the jfxswt.jar) because that's how the classloader works : it doesn't add those classes to the plugin's classpath .
On one hand, i've found some references about adding some imports in the manifest , but on the other hand apparently that is obsoleted and I should use some '-Dorg.osgi.framework.bundle.parent=ext' parameter but that doesn't seem to work .
I'm not sure if the efxclipse can help me . I have installed it from the marketplace, but it seems that it's only providing some additional project types and other tools for development .
Does anyone have any suggestion about how to approach the problem ?
Thanks for any tip/advice,
Powered by FUDForum
. Page generated in 0.14919 seconds