Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » e(fx)clipse in based product
e(fx)clipse in based product [message #1692049] Mon, 13 April 2015 01:34 Go to next message
Luis De Bello is currently offline Luis De BelloFriend
Messages: 95
Registered: January 2015
Member
Hi guys,

I am trying to use e(fx)clips in a based product configuration using my own target platform and I am having some issues trying to include some bundle

I included "http://download.eclipse.org/efxclipse/runtime-shared-released/1.2.0/site/" in order to have

org.eclipse.fx.javafx
org.eclipse.fx.osgi

But after setting my target platform the bundle "org.eclipse.fx.osgi" is not available only the "org.eclipse.fx.osgi.sources" is there.

As far my understanding goes if I included the repository in my target platform I will not need to include the jfxrt.jar for java 7 , is this right? because I wanted to avoid issues in order to do my product running on java 7 and 8.

Thanks in advance.

Regards,
Luis
Re: e(fx)clipse in based product [message #1692059 is a reply to message #1692049] Mon, 13 April 2015 06:13 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
So what feature did you select? fx.osgi is there! Did you looked into
the Content-Tab when you setup the target? And finally
org.eclipse.fx.osgi is a fragment to system.bundle! You can not set that
as a dependency on bundles.

Packaging JavaFX with your application is NEVER an option see
http://tomsondev.bestsolution.at/2012/08/01/javafx-2-2-and-osgi/

Tom

On 13.04.15 03:34, Luis De Bello wrote:
> Hi guys,
>
> I am trying to use e(fx)clips in a based product configuration using my
> own target platform and I am having some issues trying to include some
> bundle
>
> I included
> "http://download.eclipse.org/efxclipse/runtime-shared-released/1.2.0/site/"
> in order to have
>
> org.eclipse.fx.javafx
> org.eclipse.fx.osgi
>
> But after setting my target platform the bundle "org.eclipse.fx.osgi" is
> not available only the "org.eclipse.fx.osgi.sources" is there.
>
> As far my understanding goes if I included the repository in my target
> platform I will not need to include the jfxrt.jar for java 7 , is this
> right? because I wanted to avoid issues in order to do my product
> running on java 7 and 8.
>
> Thanks in advance.
>
> Regards,
> Luis
Re: e(fx)clipse in based product [message #1692088 is a reply to message #1692059] Mon, 13 April 2015 11:05 Go to previous messageGo to next message
Luis De Bello is currently offline Luis De BelloFriend
Messages: 95
Registered: January 2015
Member
Hi Thomas,

Thanks for your answer , I think that I should be missing some step because I cannot compile my code.

1- I used my own target platform some I added the following location

<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.fx.runtime.min.feature.feature.group" version="1.2.0.201501301028"/>
<repository location="http://download.eclipse.org/efxclipse/runtime-shared-released/1.2.0/site/"/>
</location>

it means that I choose "e(fx)eclipse - Minimal JavaFX OSGi integration bundles"

2 - Then I went to my plugin project and I added "org.eclipse.fx.javafx" as dependency

3- I checked the bundle "org.eclipse.fx.osgi" from the Target Platform State View in eclipse

4- I include the following in my eclipse.ini "reference\:file\:org.eclipse.fx.osgi_1.2.0.201501301028.jar" for the entry "osgi.framework.extensions" and restarted my eclipse

After doing these steps I am not able to compile my code which is looking for the FXCanvas.

Do you know which could be my mistake or issue?

Thanks in advance.

P.S: I think that the adaptor is the component which is doing the magic of locating the runtime for javafx so is really important to define it for my OSGi environment, do you know if I can use this in my deploy with tycho?
Re: e(fx)clipse in based product [message #1692090 is a reply to message #1692088] Mon, 13 April 2015 11:26 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
On 13.04.15 13:06, Luis De Bello wrote:
> Hi Thomas,
>
> Thanks for your answer , I think that I should be missing some step
> because I cannot compile my code.
>

Can not compile in the IDE or through maven?

> 1- I used my own target platform some I added the following location
>
> <location includeAllPlatforms="false" includeConfigurePhase="false"
> includeMode="slicer" includeSource="true" type="InstallableUnit">
> <unit id="org.eclipse.fx.runtime.min.feature.feature.group"
> version="1.2.0.201501301028"/>
> <repository
> location="http://download.eclipse.org/efxclipse/runtime-shared-released/1.2.0/site/"/>
>
> </location>
>
> it means that I choose "e(fx)eclipse - Minimal JavaFX OSGi integration
> bundles"
>

That's ok

> 2 - Then I went to my plugin project and I added "org.eclipse.fx.javafx"
> as dependency
>

That's ok

> 3- I checked the bundle "org.eclipse.fx.osgi" from the Target Platform
> State View in eclipse
>

That's ok

> 4- I include the following in my eclipse.ini
> "reference\:file\:org.eclipse.fx.osgi_1.2.0.201501301028.jar" for the
> entry "osgi.framework.extensions" and restarted my eclipse
>

If you build your project with tycho or better assemble the final
product with p2 it will create the entry for you. If you control your
own eclipse.ini I think this setting is ok.

> After doing these steps I am not able to compile my code which is
> looking for the FXCanvas.

Once where does it not compile:
* IDE
* maven

>
> Do you know which could be my mistake or issue?
>

If the problem is compilation with maven then this is expected because
jfxswt.jar is not on the classpath and you need to reconfigure tycho to
do so. See
http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/releng/org.eclipse.fx.ide.releng/pom.xml

Tom

> Thanks in advance.
>
> P.S: I think that the adaptor is the component which is doing the magic
> of locating the runtime for javafx so is really important to define it
> for my OSGi environment, do you know if I can use this in my deploy with
> tycho?
>
Re: e(fx)clipse in based product [message #1692092 is a reply to message #1692090] Mon, 13 April 2015 11:46 Go to previous messageGo to next message
Luis De Bello is currently offline Luis De BelloFriend
Messages: 95
Registered: January 2015
Member
Hi Tom

Thanks for your prompt response.

I cannot compile my code from the IDE, it cannot find the FXCanvas. I tried to restart the eclipse, set my target platform again, clean and build all project and it didn't work Sad

Regarding tycho you said that I need to include jfxswt.jar so does it mean that I will need java 8 to compile my code? Can't I build my product with tycho and java 7 using the jfxrt.jar?.


P.S: I included the adaptor in the eclipse.ini that I am using for develop

Thanks again for your feedback and help

Regards,
Luis
Re: e(fx)clipse in based product [message #1692119 is a reply to message #1692092] Mon, 13 April 2015 15:24 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
a) Compilation in the IDE:
--------------------------
So you tell me it is finding jfxrt.jar but you still have compile errors?

Can you show a screenshot of the "Plug-in Dependencies"-Classpath-Entry
in your Package Explorer?

b) Compilation with tycho
-------------------------
compile with java7: You need to add jfxrt.jar to the default compilation
classpath

compile with java8: You need to put jfxswt.jar to the default
compilation classpath

c) The Adapter has nothing to do with tooling!
----------------------------------------------
That you added this to the eclipse.ini tells me that you have NOT
installed the e(fx)clipse tooling into your IDE hence the compilation
problems!

Please install
http://download.eclipse.org/efxclipse/updates-released/1.2.0/site to
your host IDE (not sure what happens we the custom entry you added happens)

Tom

On 13.04.15 13:46, Luis De Bello wrote:
> Hi Tom
>
> Thanks for your prompt response.
>
> I cannot compile my code from the IDE, it cannot find the FXCanvas. I
> tried to restart the eclipse, set my target platform again, clean and
> build all project and it didn't work :(
>
> Regarding tycho you said that I need to include jfxswt.jar so does it
> mean that I will need java 8 to compile my code? Can't I build my
> product with tycho and java 7 using the jfxrt.jar?.
>
>
> P.S: I included the adaptor in the eclipse.ini that I am using for develop
> Thanks again for your feedback and help
>
> Regards,
> Luis
Re: e(fx)clipse in based product [message #1692134 is a reply to message #1692119] Mon, 13 April 2015 19:09 Go to previous messageGo to next message
Luis De Bello is currently offline Luis De BelloFriend
Messages: 95
Registered: January 2015
Member
Hi Tom,

a) Compilation in the IDE:
I didn't add the jfxrt.jar to my classpath I thought it will be included by the bundle. Now I have added the jar to my classpath without adding to my runtime because it will selected by the adapter.

Do I need to include the jar to compile my project?

Plug-in Dependencies

Image 1
https://www.dropbox.com/s/g2zxhuua0cd2xlt/Plug-in%20Dependencies%201.png?dl=0

Image 2
https://www.dropbox.com/s/joakwek893rk0gp/Plug-in%20Dependencies%202.png?dl=0

b) Compilation with tycho
Thanks for the answer I will add the dependency

c) The Adapter has nothing to do with tooling!
I will add the "osgi.framework.extensions" to my product file in order to use tycho.

Regards,
Luis

[Updated on: Mon, 13 April 2015 19:16]

Report message to a moderator

Re: e(fx)clipse in based product [message #1692135 is a reply to message #1692134] Mon, 13 April 2015 19:30 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
On 13.04.15 21:09, Luis De Bello wrote:
> Hi Tom,
>
> a) Compilation in the IDE:
> I didn't add the jfxrt.jar to my classpath I thought it will be included
> by the bundle. Now I have added the jar to my classpath without adding
> to my runtime because it will selected by the adapter.

I repeat you should NOT add the bundle to the classpath yourself - if
you would have installed the e(fx)clipse tooling it does that for you.

The adapters and bundles are pure runtime things and having to do with
the IDE compilation path created by PDE. So please install e(fx)clipse
tooling into your IDE.

Please stop doing that.

>
> Do I need to include the jar to compile my project?
> Plug-in Dependencies
>
>

NO. Just install the e(fx)clipse tooling.

>
>
> b) Compilation with tycho
> Thanks for the answer I will add the dependency
> c) The Adapter has nothing to do with tooling!
> I will add the "osgi.framework.extensions" to my product file in order
> to use tycho.

I can't follow. You don't have to add anything at all. p2 will take care
of everything when exporting with it.

I still have the feeling that you don't fully grasped how this works and
you still have NOT installed our Eclipse IDE tooling extension giving
you a specialized css-editor, ... .

Tom
Re: e(fx)clipse in based product [message #1692155 is a reply to message #1692135] Tue, 14 April 2015 02:41 Go to previous message
Luis De Bello is currently offline Luis De BelloFriend
Messages: 95
Registered: January 2015
Member
Hi Thomas,

You were right after installing the Eclipse IDE tooling it start working Smile

Thanks for your help

Best regards,
Luis
Previous Topic:Eclipse Mars (with Java FX)
Next Topic:E(fx)clipse Or Standard OSGI With JavaFX
Goto Forum:
  


Current Time: Thu Apr 25 01:03:56 GMT 2024

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

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

Back to the top