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  |
Eclipse User |
|
|
|
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. 
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   |
Eclipse User |
|
|
|
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
|
|
| | | | | |
Goto Forum:
Current Time: Sat Aug 30 09:46:52 EDT 2025
Powered by FUDForum. Page generated in 0.09076 seconds
|