Skip to main content



      Home
Home » Eclipse Projects » e(fx)clipse » Problems exporting a Plugin(FXCanvas cannot be resolved to a type)
Problems exporting a Plugin [message #1737966] Thu, 14 July 2016 09:27 Go to next message
Eclipse UserFriend
Hi i work with Neon and the e(fx) 2.4.0.
I build a pure e4 App, which works as a container for new plugins.
Then i created a new plugin that implements a fragment to build different FXViews on top of it.
Everything works fine in Eclipse. But when i export the product, i'll get FXCanvas cannot be resolved to a type when i start the application.
What am i doing wrong. What am i missing.
I searched the forum and found nothing what suited the actual release of e(fx) 2.4.0
Please help me, i stick with this problem for hours.

Dieter

Sloved it.
Just put /lib/jfxswt.jar in the runntime Classpath.
Ist this the right way? I thought e(fx) does all the magic.

[Updated on: Thu, 14 July 2016 13:34] by Moderator

Re: Problems exporting a Plugin [message #1737989 is a reply to message #1737966] Thu, 14 July 2016 13:44 Go to previous messageGo to next message
Eclipse UserFriend
No that is not the way to go! How did you export the app? Is the adapter fragment exported, is the fragment mentionned in the exported config.ini
Re: Problems exporting a Plugin [message #1737990 is a reply to message #1737989] Thu, 14 July 2016 13:47 Go to previous messageGo to next message
Eclipse UserFriend
I exported the app via the product configuration.
More details next week.
Re: Problems exporting a Plugin [message #1738218 is a reply to message #1737990] Mon, 18 July 2016 04:44 Go to previous messageGo to next message
Eclipse UserFriend
Back at my Desk.

The adapter fragment is exported but not mentioned in the config.ini.
How should this be done?
Thanx
Re: Problems exporting a Plugin [message #1738230 is a reply to message #1738218] Mon, 18 July 2016 05:35 Go to previous message
Eclipse UserFriend
Well this is done by p2! The export through clicking inside your IDE is
discouraged and unmaintained!

You need to setup a tycho build who does things appropriately! IIRC this
entry is written at the point the p2-director is installing the features
into the application.

Naturally you can add this line manually to your RCP, take a look at the
config.ini of your eclipse install to see how the line looks like.

Another alternative is that you specify:

-Dosgi.framework.extensions=org.eclipse.fx.osgi

In your .products VM-args section but i consider all of those options as
work arounds and you really should setup an headless build for your
application based on tycho.

Tom

On 18.07.16 10:44, Dieter Engelhardt wrote:
> Back at my Desk.
>
> The adapter fragment is exported but not mentioned in the config.ini.
> How should this be done?
> Thanx
Previous Topic:Junit Test fails for JavaFX nodes
Next Topic: Could not bind a reference of component ....
Goto Forum:
  


Current Time: Fri Jul 25 01:40:10 EDT 2025

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

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

Back to the top