I managed to create an SWT/JavaFX application with Eclipse Juno and e(fx)clipse 0.8.1.
I wanted to do the same now with Kepler and e(fx)clipse 0.9.0 and I'm stuck.
When starting the application (via a product launch config) I get the error message about the missing bundle:
!MESSAGE Bundle at.bestsolution.efxclipse.runtime.osgi not found.
As the bundle apparently isn't part of e(fx)clipse 0.9.0, I downloaded it bundle and at.bestsolution.efxclipse.runtime.javafx from Github into my workspace.
I added theses plug-ins to the products run configuration and added -Dosgi.framework.extensions=at.bestsolution.efxclipse.runtime.osgi to the launch configs VM arguments.
Do I perhaps need to add these plug-ins to my target platform? How would I do that?
This won't work because framework adapter hooks are ONLY loaded when
org.eclipse.osgi is in the very same filesystem path.
In 0.9.0 the complete namespace had to be shifted to org.eclipse.fx you
could fix everything by hand but I'd suggest to let the tooling
bootstrap you a new e4 Application and you copy over the relevant stuff
from the 0.8.1 project.
I'm sorry about that but this namespace shift was necessary when moving
to Eclipse.org - so it will never happen again.
On 25.09.13 16:01, Mar Ifla wrote:
> I managed to create an SWT/JavaFX application with Eclipse Juno and
> e(fx)clipse 0.8.1.
> I wanted to do the same now with Kepler and e(fx)clipse 0.9.0 and I'm
> When starting the application (via a product launch config) I get the
> error message about the missing bundle:!MESSAGE Bundle
> at.bestsolution.efxclipse.runtime.osgi not found.
> As the bundle apparently isn't part of e(fx)clipse 0.9.0, I downloaded
> it bundle and at.bestsolution.efxclipse.runtime.javafx from Github into
> my workspace.
> I added theses plug-ins to the products run configuration and added
> -Dosgi.framework.extensions=at.bestsolution.efxclipse.runtime.osgi to
> the launch configs VM arguments.
> Do I perhaps need to add these plug-ins to my target platform? How would
> I do that?
Ok so you are creating an e4 SWT application and want to embedd JavaFX?
I assumed from your other question on the e4 forum that you are using
You need to add:
to your launch config and also set
-Dosgi.framework.extensions=org.eclipse.fx.osgi and then things should work.
On 25.09.13 17:12, Mar Ifla wrote:
> Well, actually I started from scratch with a sample application. What I
> installed Eclipse Kepler
> installed e(fx)clipse 0.9.0 and e4 tools 0.14
> created new Eclipse 4 -> Eclipse 4 Application project (with sample
> content; product runs fine)
> created new target platform from
> http://download.eclipse.org/efxclipse/runtime-nightly/site and added
> Kepler plug-ins (don't know if I was supposed to do that)
> in the application created FX part injecting BorderPane (everything is
> fine at compile time)
> On running the produnct I get an ClassNotFoundException at runtime when
> the parts @PostConstruct method is called.!ENTRY
> org.eclipse.e4.ui.workbench 4 0 2013-09-25 17:07:43.644
> !MESSAGE Unable to create class 'swt.fx.test.app.parts.FXPart' from
> bundle '5'
> !STACK 0
> java.lang.NoClassDefFoundError: javafx/scene/Node
> That's when I tried to include the at.bestsolution.* stuff.