Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Product export fails: exe does not start
Product export fails: exe does not start [message #546488] Tue, 13 July 2010 06:29 Go to next message
Mike Rumpf is currently offline Mike RumpfFriend
Messages: 47
Registered: July 2009
Member
Hallo,

we are developing an osgi/swing application based on eclipse 3.52. However when we export our product (within eclipse) the resulting exe won't t start due to the famous "companion" error. The win32-launcher fragment is not unjarred, so this is no surprise. But how can I get it to work? Adding the launcher fragment to the feature with the unpack option won't work either.

I am working with a target platform including the delta pack and the complete equinox sdk. The win32-fragment is included in both. (one time as a directory one time not) This should not hurt, shouldn't it?

Any help?

Regards,
Mike

[Updated on: Tue, 13 July 2010 06:30]

Report message to a moderator

Re: Product export fails: exe does not start [message #546506 is a reply to message #546488] Tue, 13 July 2010 08:52 Go to previous messageGo to next message
Mike Rumpf is currently offline Mike RumpfFriend
Messages: 47
Registered: July 2009
Member
I found the solution myself:

The order in which location definitions appear in the target defintion file does matter:

When I had

<locations>
...
<location path="${project_loc}\equinox\eclipse" type="Directory"/>
<location path="${project_loc}\deltapack\eclipse" type="Directory"/>
</locations>

the launcher fragment was not "unjarred".

Reversing the order to

<locations>
...
<location path="${project_loc}\deltapack\eclipse" type="Directory"/>
<location path="${project_loc}\equinox\eclipse" type="Directory"/>
</locations>

solved the problems.

Seems to be a bug to me. Otherwise the tooling should support ordering of the target locations.

Regards,
Mike
Re: Product export fails: exe does not start [message #546682 is a reply to message #546506] Tue, 13 July 2010 18:07 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The equinox download
( http://download.eclipse.org/equinox/drops/R-3.6-201006080911 /download.php?dropFile=equinox-SDK-3.6.zip)
is a p2 repository, it is not in a shape appropriate to use as a directory
in a target platform.

You should add it to the target platform as a software site, uncheck group
by category and select "Equinox Core SDK". You may also want to uncheck
"Include required software" and check "Include all environments".

This will install the Equinox SDK into the target platform so that the
launcher fragments will be in the correct shape.

Alternatively, and for a headless build, you can run the repo2runnable tool
on the repository.
-Andrew
Mike Rumpf wrote:

> I found the solution myself:
>
> The order in which location definitions appear in the target defintion
> file does matter:
>
> When I had
>
> <locations>
> ..
> <location path="${project_loc}\equinox\eclipse" type="Directory"/>
> <location path="${project_loc}\deltapack\eclipse" type="Directory"/>
> </locations>
>
> the launcher fragment was not "unjarred".
>
> Reversing the order to
>
> <locations>
> ..
> <location path="${project_loc}\deltapack\eclipse" type="Directory"/>
> <location path="${project_loc}\equinox\eclipse" type="Directory"/>
> </locations>
>
> solved the problems.
>
> Seems to be a bug to me. Otherwise the tooling should support ordering of
> the target locations.
>
> Regards,
> Mike
Re: Product export fails: exe does not start [message #546704 is a reply to message #546682] Tue, 13 July 2010 20:41 Go to previous message
Mike Rumpf is currently offline Mike RumpfFriend
Messages: 47
Registered: July 2009
Member
Thank you for your answer, Andrew.

I actually tried to add equinox as a software site in the past. It worked basically but was terribly slow when working with the target definition editor. More than once eclipse tried to connect to the software site after open the target definition editor (meaning you have to wait for a minute or so). Although sometimes the update site was not available. Some of my colleagues could not fetch the equinox sdk for hours. It did not seem very practical to me. However having it as a directory speeded things up quite a bit. But maybe I am missing something here?

The equinox core sdk does not contain the equinox ds-bundle. How do I get it other than adding it manually?

It's really tricky to do it right...

Regards,
Mike






Previous Topic:Where to put my java.policy?
Next Topic:How to launch Install dialog with a selected URI?
Goto Forum:
  


Current Time: Fri Apr 26 14:10:42 GMT 2024

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

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

Back to the top