Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Using JavaFX in Eclipse RCP Web Start Application
Using JavaFX in Eclipse RCP Web Start Application [message #1240409] Thu, 06 February 2014 11:37 Go to next message
Paweł Doleciński is currently offline Paweł DolecińskiFriend
Messages: 44
Registered: January 2014
Member
Hi,

I found a short discussion on google groups:
https://groups.google.com/forum/#!topic/efxclipse/CYHPLA0dTec
and decided to continue topic here.

I am trying to create a webstart for my eclipse 4 rcp based application.
I am using JavaFX inside SWT.

I have everything configured correctly, exported product works great.
Problem comes when using WebStart.

In JNLP file I tried to add this line:
<j2se version="1.7+" java-vm-args="-Dosgi.framework.extensions=javax.transaction,org.eclipse.equinox.transforms.hook,org.eclipse.equinox.weaving.hook,org.eclipse.fx.osgi"/>


later I tried to use this line:
<property name="osgi.framework.extensions" value="javax.transaction,org.eclipse.equinox.transforms.hook,org.eclipse.equinox.weaving.hook,org.eclipse.fx.osgi" />



Moreover, I tried to add the same property value as in config.ini in exported product, so with reference\:file\:....

Neither of them work.
I think is more general problem with osgi extensions under WebStart.

Any idea?

Cheers,
Paweł.
Re: Using JavaFX in Eclipse RCP Web Start Application [message #1240458 is a reply to message #1240409] Thu, 06 February 2014 14:06 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I really can't help because I don't use WebStart generally speaking I
think you have to ask at an Equinox specific list.

Tom

On 06.02.14 12:37, Paweł Doleciński wrote:
> Hi,
>
> I found a short discussion on google groups:
> https://groups.google.com/forum/#!topic/efxclipse/CYHPLA0dTec
> and decided to continue topic here.
>
> I am trying to create a webstart for my eclipse 4 rcp based application.
> I am using JavaFX inside SWT.
>
> I have everything configured correctly, exported product works great.
> Problem comes when using WebStart.
>
> In JNLP file I tried to add this line:
> <j2se version="1.7+"
> java-vm-args="-Dosgi.framework.extensions=javax.transaction,org.eclipse.equinox.transforms.hook,org.eclipse.equinox.weaving.hook,org.eclipse.fx.osgi"/>
>
>
> later I tried to use this line:
> <property name="osgi.framework.extensions"
> value="javax.transaction,org.eclipse.equinox.transforms.hook,org.eclipse.equinox.weaving.hook,org.eclipse.fx.osgi"
> />
>
>
> Moreover, I tried to add the same property value as in config.ini in
> exported product, so with reference\:file\:....
>
> Neither of them work.
> I think is more general problem with osgi extensions under WebStart.
>
> Any idea?
>
> Cheers,
> Paweł.
Re: Using JavaFX in Eclipse RCP Web Start Application [message #1240465 is a reply to message #1240458] Thu, 06 February 2014 14:29 Go to previous messageGo to next message
Paweł Doleciński is currently offline Paweł DolecińskiFriend
Messages: 44
Registered: January 2014
Member
Hi Tom,

thank you for response.
This is actually what I expected. After debugging I see that the problem is more general in loading osgi extensions in webstart.
So I am going to them for help.

Cheers,
Paweł.
Re: Using JavaFX in Eclipse RCP Web Start Application [message #1241118 is a reply to message #1240465] Fri, 07 February 2014 14:09 Go to previous messageGo to next message
Paweł Doleciński is currently offline Paweł DolecińskiFriend
Messages: 44
Registered: January 2014
Member
Hi,

for future if anyone interested I created a bug 427663 in Equinox project with a workaround described there.

Cheers,
Paweł.
Re: Using JavaFX in Eclipse RCP Web Start Application [message #1241136 is a reply to message #1241118] Fri, 07 February 2014 14:33 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Is that really a work around or suggested fix? Could you get it to work
without patching equinox?

Tom

On 07.02.14 15:09, Paweł Doleciński wrote:
> Hi,
>
> for future if anyone interested I created a bug
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=427663 in Equinox project
> with a workaround described there.
>
> Cheers,
> Paweł.
Re: Using JavaFX in Eclipse RCP Web Start Application [message #1241171 is a reply to message #1241136] Fri, 07 February 2014 15:29 Go to previous messageGo to next message
Paweł Doleciński is currently offline Paweł DolecińskiFriend
Messages: 44
Registered: January 2014
Member
Yeah, right. This is a suggested fix. To make it working right now one needs to extend from WebStartMain and override almost entire Main class (so did I, as I need it working now :/ ). So all in all, it could be called a work around, but a really ugly one. Depends what are your customer expectations for a next product presentation Wink
Re: Using JavaFX in Eclipse RCP Web Start Application [message #1241192 is a reply to message #1241171] Fri, 07 February 2014 16:06 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Maybe it would be good to document - although ugly - your solution for
others? We have a https://wiki.eclipse.org/Efxclipse/Runtime/Recipes
where we collect recipes to use our API and I think adding a WebStart
section with recipes and workarounds might be a good idea!

Tom

On 07.02.14 16:29, Paweł Doleciński wrote:
> Yeah, right. This is a suggested fix. To make it working right now one
> needs to extend from WebStartMain and override almost entire Main class
> (so did I, as I need it working now :/ ). So all in all, it could be
> called a work around, but a really ugly one. Depends what are your
> customer expectations for a next product presentation ;)
Re: Using JavaFX in Eclipse RCP Web Start Application [message #1252446 is a reply to message #1241192] Fri, 21 February 2014 08:16 Go to previous messageGo to next message
Paweł Doleciński is currently offline Paweł DolecińskiFriend
Messages: 44
Registered: January 2014
Member
Hi,

sorry for late answer.
Of course I agree about this idea!
Should I prepare small description and post it here or how?

Cheers,
Paweł.
Re: Using JavaFX in Eclipse RCP Web Start Application [message #1252447 is a reply to message #1252446] Fri, 21 February 2014 08:20 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
It's a wiki - just edit the wiki page!

Tom

On 21.02.14 09:16, Paweł Doleciński wrote:
> Hi,
>
> sorry for late answer. Of course I agree about this idea! Should I
> prepare small description and post it here or how?
>
> Cheers,
> Paweł.
Re: Using JavaFX in Eclipse RCP Web Start Application [message #1252481 is a reply to message #1252447] Fri, 21 February 2014 09:03 Go to previous message
Paweł Doleciński is currently offline Paweł DolecińskiFriend
Messages: 44
Registered: January 2014
Member
Stupid me Smile

Thanks,
Paweł.
Previous Topic:Application building error
Next Topic:efxeclipse Tutorial 3 doesn't show up
Goto Forum:
  


Current Time: Thu Apr 18 01:42:42 GMT 2024

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

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

Back to the top