Wednesday, August 22, 2007

Problems Exporting your Eclipse RCP?

Today one of the students (PhD level) came to me with a problem I had encountered before while exporting my Eclipse RCP project. Normally you click on the export wizard on your project.product page and everything works fine. But occasionally you have a problem and when you look at the log file it generates in an annoying zip file you see nothing in there or maybe some warnings. This should be working, why is it failing? Well every single time this has happened to me it was because the generated eclipse.exe file become exclusively locked. This is under Windows XP Pro. I have no idea if this is happening to people on other platforms.

You can't just delete everything in your old export folder, because the delete fails.

So how do you fix it? Well these are the only solutions that work for me:

1) If in a hurry, export to a new folder.
2) If not in a hurry, reboot your computer, remove the old folder (or all its contents), run eclipse and export your project.

Why this is such an easy answer it is surprising how many people bang their heads against the wall on this one.

3 comments:

Mahesh TC said...

Hai

Iam mahesh, i have a problem with exporting RCP product as well. But the solution you have given i have already tried, it doesnt evenwork now.

It runs well within IDE, when exported as product, it shows error and config file reads, no Application Id found.

Everything is alright, i have checked everything. So just if you have faced same problem or have solution, please give a reply.

Thank you
Mahesh

Unknown said...

The first thing that comes to mind is case sensitive. Are you making sure your application id is the same case in all instances? Check that.

Fraer9 said...

Yo,

Recently i've noticed something related to Product Export problems. If you rename the eclipse executable (ex: from eclipse to eclipse3.3) the product generation will cause a missing product executable (no errors, just missing executable).

So just DO NOT RENAME the eclipse executable :) (I was becoming mad until i reinstalled a new eclipse ...)

May the gods of RCP have mercy