Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » RCP Exported App does not compile JavaFX
RCP Exported App does not compile JavaFX [message #1403775] Sat, 26 July 2014 18:58 Go to next message
Georgian Grec is currently offline Georgian GrecFriend
Messages: 5
Registered: July 2014
Junior Member
1.) I'm trying to export an RCP app which has JavaFX functionality.

2.) RCP is based on features. I'm adding the org.eclipse.fx.target.rcp.feature, and including the org.eclipse.fx.javafx plugin wherever I need JavaFX components.

3.) Apparently, Eclipse (Kepler) gives me compile errors if the Execution Environment is not set (1.7). Also, the e(fx)clipse tooling is installed.


App works fine from Eclipse. When I export it, the compiler cannot find JavaFX classes ("ERROR" in the export log). On which classpath do I need to add what? Please note that this is very urgent for me.


Thank you.
Re: RCP Exported App does not compile JavaFX [message #1403818 is a reply to message #1403775] Mon, 28 July 2014 06:53 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5859
Registered: July 2009
Senior Member
Hi,

The reason for this behavior is that PDE-Build inside your IDE does not
know about JavaFX - e(fx)clipse is only able to fix the
Classpath-Containers in the IDE and OSGi-Runtime but not for the
PDE-Build which is running when doing an export from within Eclipse.

Generally I'd consider ANY commerical product who builds upon export
from with the IDE as a major flaw in your process and we -
BestSolution.at - will not invest time into fixing PDE-Build.

This gives you the following options:
a) you convert your build to e.g. maven-tycho which allows you to pass
on compile time dependencies
b) you modify the java7 env you are using to build by making
javafxrt.jar available on the ext classpath (which is the reason
your build scenario would work on JDK8 because there JavaFX is on
the ext classpath)
c) you switch your stuff to JDK8
d) you use extra.classpath entries in your build.properties

I consider only a) a viable solution for any professional long term
solution.

Tom

On 27.07.14 18:10, Georgian Grec wrote:
> 1.) I'm trying to export an RCP app which has JavaFX functionality.
> 2.) RCP is based on features. I'm adding the
> org.eclipse.fx.target.rcp.feature, and including the
> org.eclipse.fx.javafx plugin wherever I need JavaFX components.
>
> 3.) Apparently, Eclipse (Kepler) gives me compile errors if the
> Execution Environment is not set (1.7). Also, the e(fx)clipse tooling is
> installed.
>
>
> App works fine from Eclipse. When I export it, the compiler cannot find
> JavaFX classes ("ERROR" in the export log). On which classpath do I need
> to add what? Please note that this is very urgent for me.
>
>
> Thank you.
Re: RCP Exported App does not compile JavaFX [message #1403974 is a reply to message #1403818] Mon, 28 July 2014 20:44 Go to previous messageGo to next message
Georgian Grec is currently offline Georgian GrecFriend
Messages: 5
Registered: July 2014
Junior Member
Hello Tom.

It's a really big project, but I think the maven tycho solution could work.

1.) Is following and learning vogella's mvn/tycho/rcp tutorial enough?
2.) Will JavaFX export for 32 bits, as well as 64 bits? It currently crashes the whole app when it's exported as a 32bit app with a 64bit jfxrt
Re: RCP Exported App does not compile JavaFX [message #1403976 is a reply to message #1403974] Mon, 28 July 2014 21:10 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5859
Registered: July 2009
Senior Member
On 28.07.14 22:44, Georgian Grec wrote:
> Hello Tom.
>
> It's a really big project, but I think the maven tycho solution could work.
> 1.) Is following and learning vogella's mvn/tycho/rcp tutorial enough?

Maybe - I have never looked at them.

> 2.) Will JavaFX export for 32 bits, as well as 64 bits? It currently
> crashes the whole app when it's exported as a 32bit app with a 64bit jfxrt

You say you export a 32bit app and want to run it on 64? That will
always crash with SWT because you have the wrong native binaries. JavaFX
is always taken from the JRE so it does not care if you run on 64bit or 32.

You can export for as many platforms with tycho as you want simply setup
your maven-tycho build and configure it to export for all platforms you
want to support.

Maybe you should start with a simple plain SWT-RCP so that you learn how
to built RCP and then move on to include JavaFX.

If you need professional support to get the built setup - all I can
offer is that our company - BestSolution.at - provides payed support
services and we could help you set up the build.

Tom
Previous Topic:CSS Warnings
Next Topic:How to use DnDTabPane example
Goto Forum:
  


Current Time: Sat Aug 29 21:14:39 GMT 2015

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

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