Bug 397272 - .exe built from 'Eclipse Product Export wizard' no longer works on upgrade from 3.7.x to 3.8.x/4.2.1
Summary: .exe built from 'Eclipse Product Export wizard' no longer works on upgrade fr...
Status: NEW
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 4.2.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-31 07:56 EST by Mike Evans CLA
Modified: 2022-11-17 10:18 EST (History)
1 user (show)

See Also:


Attachments
3.7.2 and 3.8.2 exe's (107.29 KB, application/zip)
2012-12-31 07:56 EST, Mike Evans CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Evans CLA 2012-12-31 07:56:55 EST
Created attachment 225112 [details]
3.7.2 and 3.8.2 exe's

Hi,
Apologies if this should goto PDE group instead - just let me know.

Summary
The built .exe on an RCP app deploy has changed since 3.8.x and no longer works. Help!

Detail
I manually build an RCP app via the product editor, eclipse product export wizard.
The product is based on plug-ins not features.
Building for Win32 deployment on a Windows 7 x64 machine.
This has worked fine for years, up to 3.7.2.
I upgraded the dev environment and the PDE target to 3.8.1, taking into account the update to Jetty 8 and Servlet 3.0 noted in What's New.
Running in the dev environment is fine.
However the build fails with the standard 'unable to locate the companion shared libraries'.
All config setting are unchanged since 3.7.2.
I have checked and checked again the deployed plug-ins.
However I noticed that the .exe has grown from 52k to 305k.
Hence I replaced the .exe with one from my last 3.7.2 build (leaving everything else unchanged) and it works fine.

Question
What has changed in the exe?
Are feature-based builds any more likely to work?
(The 3.7.2 and 3.8.1 exe's are attached).

Thanks for any help,

Mike E.
Comment 1 Mike Evans CLA 2013-01-16 09:46:39 EST
Same issue in eclipse 4.2.1.
Unsurprisingly, as I suspect the PDE code is no different between 3.8.2 and 4.2.1.
However changing the product version in case 4.x bugs get a higher priority ;-)

Mike E.
Comment 2 Mike Evans CLA 2013-11-30 14:29:13 EST
Hi,
This might be a PDE problem, not an Equinox one.
Hence I have changed the 'Product' designation of the field.

Mike E.
Comment 3 Stefan Prieschl CLA 2017-01-17 05:26:29 EST
Problem is still existing for Eclipse 4.6.2.

We have an Eclipse RCP 3.7.2 product, where we use Eclipse 4.6.2 as IDE.
To realize this, we have selected the Eclipse 3.7.2 installation as Target Platform
I think that the problem is, that Eclipse PDE uses the eclipse.exe from the IDE instead of the Target Platform to create the product.exe.

The concrete problem with the exported product is, that the product.exe file does not read the product.ini file correctly. So the -Xmx1024m argument from the product.ini file is not handed to the JVM. This leads to a java.lang.OutOfMemoryError: Java heap space.

At the moment I am using a workaround, where I use the eclipse.exe from Eclipse 3.7.2 for the Eclipse 4.6.2 installation. This seems to work, but is a quite ugly solution.

Does anyone know, what has been changed in the eclipse.exe from version 3 to 4? I think that they both do quite the same (load ini, provide icon, start jvm with params). But what is really the difference?
Comment 4 Lars Vogel CLA 2018-12-03 09:11:24 EST
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. 

Please reopen, if you plan to provide a fix.
Comment 5 Lars Vogel CLA 2018-12-03 09:13:52 EST
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. 

Please reopen, if you plan to provide a fix.
Comment 6 Eclipse Genie CLA 2020-11-26 12:33:52 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Eclipse Genie CLA 2022-11-17 10:18:57 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.