Skip to main content



      Home
Home » Eclipse Projects » e(fx)clipse » How to export an e(fx)clipse e4-Media-Application
How to export an e(fx)clipse e4-Media-Application [message #1425553] Wed, 17 September 2014 09:23 Go to next message
Eclipse UserFriend
Ok, so first off: I'm a newbie when it comes to plugin-developement and this is my first try to write a rcp, so please excuse me, if I don't know some basic stuff yet.

As the title of this topic says, my question is how to export a e4-Media-Application. I created it with the help of this tutorial (https://wiki.eclipse.org/Efxclipse/Tutorials/Tutorial3) and it works fine inside my IDE.

But I couldn't figure out yet, what I have to do to export the application correctly. Here is what I have tried so far (I used the export wizard in the {appname}.product.product file.):
-> If I choose the product configuration to be based on features, I get an immediate error during the export. If I choose it to be based on plugins, the export worked without error.
-> If I choose "The product includes native launcher artifacts" I get a .exe file in the exported directory. If I don't choose it, I get no .exe file.
-> If I choose "Generate p2 repository" in the export wizard, I get no .exe file in the destination directory. If I don't choose it, there is a .exe file.

In order to get no error and a .exe file I have chosen configuration based on plugins, The product includes native launcher artifacts, and don't generate a p2 repository. Now I have an .exe, but if I try to launch it, i get "The eclipse executable launcher was unable to locate its companion shared library". I've found some possible solutions for this error (keyword: missing org.eclipse.equinox.launcher.win32.win32.x86_64 folder), but none worked for me.

And by the way: I'm working with Windows 7 (64bit), eclipse-SDK-4.4-win32-x86_64, jdk1.8.0_11 (64bit) and jre8 (64bit).

So, is it possible to export a e4-Media-Application with the standard export wizard and without any additional tools? What am I doing wrong? I would be very happy if someone could provide me a step by step tutorial to solve my problem. But please remember, I am doing this for the first time, so be patient with me. Smile

Thanks for the answers in advance,
Daniel

[Updated on: Wed, 17 September 2014 10:30] by Moderator

Re: How to export an e(fx)clipse e4-Media-Application [message #1426068 is a reply to message #1425553] Thu, 18 September 2014 03:38 Go to previous messageGo to next message
Eclipse UserFriend
On 17.09.14 15:57, Daniel Eppacher wrote:
> Ok, so first off: I'm a newbie when it comes to plugin-developement and
> this is my first try to write a rcp, so please excuse me, if I don't
> know some basic stuff yet.
>
> As the title of this topic says, my question is how to export a
> e4-Media-Application. I created it with the help of this tutorial
> (https://wiki.eclipse.org/Efxclipse/Tutorials/Tutorial3) and it works
> fine inside my IDE.
>
> But I couldn't figure out yet, what I have to do to export the
> application correctly. Here is what I have tried so far (I used the
> export wizard in the {appname}.product.product file.):
> -> If I choose the product configuration to be based on features, I get
> an immediate error during the export. If I choose it to be based on
> plugins, the export worked without error.

Most likely the generated feature misses some dependencies which doesn't
cause problems when launching inside eclipse because PDE automagically
adds those missing deps

-> If I choose "The product
> includes native launcher artifacts" I get a .exe file in the exported
> directory. If I don't choose it, I get no .exe file.

We don't ship the native parts of the launcher for multiple reasons (on
OS-X they would deadlock the app, on win32 the splash is not brought
down, ...)

To produce .exe files we rely on the javafx-packager application

> -> If I choose "Generate p2 repository" in the export wizard, I get no
> .exe file in the destination directory. If I don't choose it, there is a
> .exe file.

Yep you'll only get a p2 repo which you could use to produce an
update-site so that your application is updated.

>
> In order to get no error and a .exe file I have chosen configuration
> based on plugins, The product includes native launcher artifacts, and
> don't generate a p2 repository. Now I have an .exe, but if I try to
> launch it, i get "The eclipse executable launcher was unable to locate
> its companion shared library". I've found some possible solutions for
> this error (keyword: missing
> org.eclipse.equinox.launcher.win32.win32.x86_64 folder), but none worked
> for me.

See above - there's a reason we don't package the launcher stuff into
our target platform.

There are people who make use of it in the e4-javafx apps but those guys
really know what they are doing (=they are not beginners in this area :-)

>
> And by the way: I'm working with eclipse-SDK-4.4-win32-x86_64,
> jdk1.8.0_11 (64bit) and jre8 (64bit).
>
> So, is it possible to export a e4-Media-Application with the standard
> export wizard and without any additional tools? What am I doing wrong? I
> would be very happy if someone could provide me a step by step tutorial
> to solve my problem. But please remember, I am doing this for the first
> time, so be patient with me. :)

Unfortunately the e4-Media-Application is only meant as a sample
application which you can try and inspect to see how things work. My
suggestion is that you follow tutorial 4
(https://wiki.eclipse.org/Efxclipse/Tutorials/Tutorial4) which will
produce a complete build environment for you.

In case you follow Tutorial 4 until the end what is not described in
there is the export step which is done through maven. If you downloaded
the prebuild distro you have m2e in your eclipse simply bring up the
context-menu on the pom.xml inside app.releng (the maven targets are
clean package) and after the build has finished run build.xml which will
use the javafxpackager to produce an launcher .exe and an installer (for
the installer to be generated you need to extra stuff installed on win32
- please refer to the javafx packager documentation)

In future we plan to directly do the packaging as part of the maven
build but for now please follow this way.

Feel free to file a bug so that we modify the e4-Media-Application
wizard to produce such a setup as well but like outlined I'm not sure
this is a good idea - i saw the same thing happening for RCP 3.x where
all apps started from the Mail Example.

IMHO examples are there to inspect and see how things work but should
not be used as the start of an application.

Tom
Re: How to export an e(fx)clipse e4-Media-Application [message #1426244 is a reply to message #1426068] Thu, 18 September 2014 09:03 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for your quick reply!
It took me a few hours, but now the export works fine. Smile
Regards, Daniel.
Re: How to export an e(fx)clipse e4-Media-Application [message #1426286 is a reply to message #1426244] Thu, 18 September 2014 10:12 Go to previous messageGo to next message
Eclipse UserFriend
Did you go the maven way and tutorial 4? If yes it would be great if
you'd update the wiki and add the stuff that needs to be done to export
the application.

If you want I can take a look at it once you update the wiki.

Tom

On 18.09.14 15:03, Daniel Eppacher wrote:
> Thanks for your quick reply!
> It took me a few hours, but now the export works fine. :)
> Regards, Daniel.
Re: How to export an e(fx)clipse e4-Media-Application [message #1426333 is a reply to message #1426286] Thu, 18 September 2014 11:34 Go to previous messageGo to next message
Eclipse UserFriend
Yes, I've done it with Maven and Tutorial 4. I've downloaded the prebuild distro (eclipse-SDK-4.4-win32-x86_64-efx-1.0.0-SNAPSHOT), then I followed your advices. First I had a few problems but I was able to solve them more or less quickly (e.g. I needed to update to Tycho 0.20.0 in the pom.xml file and I had to change a path to the "ant-javafx.jar"-file in the build.xml file).

If I should update the wiki you need to tell me where and how I should do it (As I said I am relatively new to this). Wink
Re: How to export an e(fx)clipse e4-Media-Application [message #1426515 is a reply to message #1426333] Thu, 18 September 2014 17:47 Go to previous messageGo to next message
Eclipse UserFriend
Please file a bug with the fix you need to adjust manually - the tooling
should have created everything appropriately.

Tom

On 18.09.14 17:34, Daniel Eppacher wrote:
> Yes, I've done it with Maven and Tutorial 4. I've downloaded the
> prebuild distro (eclipse-SDK-4.4-win32-x86_64-efx-1.0.0-SNAPSHOT), then
> I followed your advices. First I had a few problems but I was able to
> solve them more or less quickly (e.g. I needed to update to Tycho 0.20.0
> in the pom.xml file and I had to change a path to the
> "ant-javafx.jar"-file in the build.xml file).
>
> If I should update the wiki you need to tell me where and how I should
> do it (As I said I am relatively new to this). ;)
Re: How to export an e(fx)clipse e4-Media-Application [message #1426809 is a reply to message #1426515] Fri, 19 September 2014 04:40 Go to previous message
Eclipse UserFriend
Aliright, I just filed a bug. Hope, I did everything right and missed nothing. Smile
Regards, Daniel.
Previous Topic:Scene Builder integration with Eclipse
Next Topic:Difficulty contributing CSS files
Goto Forum:
  


Current Time: Sat Aug 30 09:46:54 EDT 2025

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

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

Back to the top