Skip to main content



      Home
Home » Eclipse Projects » e(fx)clipse » e(fx)clipse runtime in 3.8 and/or Java 7
e(fx)clipse runtime in 3.8 and/or Java 7 [message #1319829] Mon, 28 April 2014 08:15 Go to next message
Eclipse UserFriend
I understand that you don't support Juno (3.8.x) anymore for the E(fx)clipse tooling. But I'm wondering if it still works when you need JavaFX in a Juno-based RCP application.

I have an RCP that runs in 3.8 (never made the leap to 4.x due to the massive UI changes) and am trying to get access to the JavaFX libraries in one of my plug-ins.

I am guaranteed to be running Java 1.7u55 or better in my distributions.

I have tried downloading the JavaFX target and installing it into my RCP Target. So far no luck (I am unable to load any JavaFX classes).

Am I missing something simple here? Is this supported? Can it be?

My plug-in is including dependencies on:
org.eclipse.fx.javafx
org.eclipse.fx.ui.workbench3

I also specified org.eclipse.fx.osgi to be included in my runtime.

No luck. I get class not found exceptions for all javafx.* classes.

Any help? Please? I am trying to put together a proof of concept demo and need to be able to show that JavaFX inside of my RCP is possible ASAP.

Thanks.
Re: e(fx)clipse runtime in 3.8 and/or Java 7 [message #1319842 is a reply to message #1319829] Mon, 28 April 2014 08:23 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

To make the JavaFX classes loaded at runtime you need to add the
org.eclipse.fx.osgi fragment to your launch config / product definition
and launch your application with
-Dosgi.framework.extensions=org.eclipse.fx.osgi

Make sure you use the 0.9.0 bundles - 1.0.0 won't work because the
Equinox-AdapterHook API has changed.

To check if the adapter-hooks are running you can add
-Defxclipse.osgi.hook.debug=true to get some prints on System.err
informing you about the activity of the adapter hook.

Tom

On 28.04.14 14:15, James Peltzer wrote:
> I understand that you don't support Juno (3.8.x) anymore for the
> E(fx)clipse tooling. But I'm wondering if it still works when you need
> JavaFX in a Juno-based RCP application.
>
> I have an RCP that runs in 3.8 (never made the leap to 4.x due to the
> massive UI changes) and am trying to get access to the JavaFX libraries
> in one of my plug-ins.
>
> I am guaranteed to be running Java 1.7u55 or better in my distributions.
>
> I have tried downloading the JavaFX target and installing it into my RCP
> Target. So far no luck (I am unable to load any JavaFX classes).
>
> Am I missing something simple here? Is this supported? Can it be?
>
> My plug-in is including dependencies on:
> org.eclipse.fx.javafx
> org.eclipse.fx.ui.workbench3
>
> I also specified org.eclipse.fx.osgi to be included in my runtime.
>
> No luck. I get class not found exceptions for all javafx.* classes.
>
> Any help? Please? I am trying to put together a proof of concept demo
> and need to be able to show that JavaFX inside of my RCP is possible ASAP.
>
> Thanks.
Re: e(fx)clipse runtime in 3.8 and/or Java 7 [message #1319867 is a reply to message #1319842] Mon, 28 April 2014 08:41 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the fast reply!

I also needed to add org.eclipse.fx.javafx to my runtime configuration to make it work.
Looks like I was most of the way there before - just missed the extensions property.

James
Re: e(fx)clipse runtime in 3.8 and/or Java 7 [message #1320057 is a reply to message #1319867] Mon, 28 April 2014 11:05 Go to previous message
Eclipse UserFriend
Hi James,

right as a minimum you need
* org.eclipse.fx.osgi (fragment) - makes sure the class-resolving is
hooked
* org.eclipse.fx.javafx - provides the javafx-packages (fake!)

Optionally:
* org.eclipse.fx.ui.workbench3

If you launch from inside your IDE you also need to add the
-Dosgi.framework.extensions=org.eclipse.fx.osgi. If you build your RCP
using tycho and the p2-director then p2 will take care of the
appropriate entries in your config.ini - in case you build that your own
make sure the framework-extension stuff is mentionned there!

Tom

On 28.04.14 14:41, James Peltzer wrote:
> Thanks for the fast reply!
>
> I also needed to add org.eclipse.fx.javafx to my runtime configuration
> to make it work.
> Looks like I was most of the way there before - just missed the
> extensions property.
>
> James
Previous Topic:javaFX in e4 vs Java application
Next Topic:JavaFX CSS autocomplete not working
Goto Forum:
  


Current Time: Sun Apr 20 03:54:28 EDT 2025

Powered by FUDForum. Page generated in 0.03735 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top