Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Product export problems(Native launcher does not works when exporting an e4 application)
Product export problems [message #1709757] Wed, 30 September 2015 17:30 Go to next message
Eclipse UserFriend
Hi,

I'm trying to export my e4 JavaFX application. The output directory is correctly created, it contains the JRE and the native launcher (.exe).

Unfortunately, when I try to run the native launcher, a popup appears indicating :

Quote:

The MyApp executable launcher was unable to locate its companion shared library.


My product is configured like this :

<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>

<product name="FAST" uid="FASTProduct" id="com.myapp.product" application="org.eclipse.fx.ui.workbench.fx.application" version="1.0.0" useFeatures="true" includeLaunchers="true">

   <configIni use="default">
   </configIni>

   <launcherArgs>
      <vmArgs>-Dorg.osgi.framework.bundle.parent=ext
      </vmArgs>
   </launcherArgs>

   <splash
      location="com.myapp"
      startupProgressRect="5,275,445,15" />
   <launcher name="FAST">
      <solaris/>
      <win useIco="false">
      </win>
   </launcher>

   <vm>
      <macos include="true">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8</macos>
      <windows include="true">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8</windows>
   </vm>

   <plugins>
   </plugins>

   <features>
      <feature id="com.myapp.feature"/>
      <feature id="org.eclipse.fx.runtime.e4fx.feature"/>
   </features>

   <configurations>
      <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
      <plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
      <plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="2" />
      <plugin id="org.eclipse.equinox.event" autoStart="true" startLevel="2" />
      <plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1" />
      <plugin id="org.eclipse.osgi" autoStart="true" startLevel="-1" />
   </configurations>

   <preferencesInfo>
      <targetfile overwrite="false"/>
   </preferencesInfo>

   <cssInfo>
   </cssInfo>

</product>


I have another question (according to this bug), why I can't select the Generate p2 repository export option in my Eclipse Product export wizard ?

Any help appreciated!
Re: Product export problems [message #1709760 is a reply to message #1709757] Wed, 30 September 2015 17:49 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

a) e4 JavaFX questions should be asked at the efxclipse forum
b) the efxclipse target platform we provide does not include the native
launcher artifacts so you need to add them manually to your build

Tom

On 30.09.15 19:30, Thibault Pensec wrote:
> Hi,
> I'm trying to export my e4 JavaFX application. The output directory is
> correctly created, it contains the JRE and the native launcher (.exe).
> Unfortunately, when I try to run the native launcher, a popup appears
> indicating :
> Quote:
>> The MyApp executable launcher was unable to locate its companion
>> shared library.
>
>
> My product is configured like this :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?pde version="3.5"?>
>
> <product name="FAST" uid="FASTProduct" id="com.myapp.product"
> application="org.eclipse.fx.ui.workbench.fx.application" version="1.0.0"
> useFeatures="true" includeLaunchers="true">
>
> <configIni use="default">
> </configIni>
>
> <launcherArgs>
> <vmArgs>-Dorg.osgi.framework.bundle.parent=ext
> </vmArgs>
> </launcherArgs>
>
> <splash
> location="com.myapp"
> startupProgressRect="5,275,445,15" />
> <launcher name="FAST">
> <solaris/>
> <win useIco="false">
> </win>
> </launcher>
>
> <vm>
> <macos
> include="true">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8</macos>
>
> <windows
> include="true">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8</windows>
>
> </vm>
>
> <plugins>
> </plugins>
>
> <features>
> <feature id="com.myapp.feature"/>
> <feature id="org.eclipse.fx.runtime.e4fx.feature"/>
> </features>
>
> <configurations>
> <plugin id="org.eclipse.core.runtime" autoStart="true"
> startLevel="0" />
> <plugin id="org.eclipse.equinox.common" autoStart="true"
> startLevel="2" />
> <plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="2" />
> <plugin id="org.eclipse.equinox.event" autoStart="true"
> startLevel="2" />
> <plugin id="org.eclipse.equinox.simpleconfigurator"
> autoStart="true" startLevel="1" />
> <plugin id="org.eclipse.osgi" autoStart="true" startLevel="-1" />
> </configurations>
>
> <preferencesInfo>
> <targetfile overwrite="false"/>
> </preferencesInfo>
>
> <cssInfo>
> </cssInfo>
>
> </product>
>
>
> I have another question (according to this
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=309758), why I can't
> select the Generate p2 repository export option in my Eclipse Product
> export wizard ?
> Any help appreciated!
Re: Product export problems [message #1709774 is a reply to message #1709760] Wed, 30 September 2015 19:50 Go to previous message
Eclipse UserFriend
Ok Tom, I'll re-ask my question at the e(fx)clipse forum.
Previous Topic:Explicitly set dirty flag on GEF Editor
Next Topic:Compatibility Layer restore detached Folder?
Goto Forum:
  


Current Time: Fri Apr 26 14:27:13 GMT 2024

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

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

Back to the top