Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:27 Go to next message
Dieter Engelhardt is currently offline Dieter EngelhardtFriend
Messages: 23
Registered: June 2016
Junior Member
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 17:34]

Report message to a moderator

Re: Problems exporting a Plugin [message #1737989 is a reply to message #1737966] Thu, 14 July 2016 17:44 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 17:47 Go to previous messageGo to next message
Dieter Engelhardt is currently offline Dieter EngelhardtFriend
Messages: 23
Registered: June 2016
Junior Member
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 08:44 Go to previous messageGo to next message
Dieter Engelhardt is currently offline Dieter EngelhardtFriend
Messages: 23
Registered: June 2016
Junior Member
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 09:35 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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: Tue Apr 23 09:38:19 GMT 2024

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

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

Back to the top