Thursday, October 9, 2008

Eclipse RCP Update Manager

Today, I did tried adding the update manager UI and setting up an update site for my eclipse RCP application. Everything went fine. I did set up the menu item Update->Software Updates. Added my update site and able to locate the new features :) I was happy and believe me its a cool feature eclipse provides. But the moment I selected my new feature under (Select the features to install), the 'Updates' dialog throws the following error :

Resulting configuration does not contain the platform

oops ! I tried debugging this issue for hours. Googled .... and found out that for your Update Manager to work properly you need to have everything as a feature and no-plugins. If you created a product file for your eclipse RCP application with 'plugins' turned on under 'The product configuration is based on:' tab of your product files 'Overview' section, you need to changed the option from 'plugins' to 'fetaures'. Hold on ! You have other things to do ....

I would suggest you to follow the Section 9 - Add Update-Manager to rcpmail of http://www.eclipsecon.org/2005/presentations/EclipseCon2005_Tutorial8.pdf

I got this link from the eclipse RCP FAQ Page - http://wiki.eclipse.org/index.php/RCP_FAQ#How_can_I_add_the_Eclipse_Update_Manager_to_my_application.3F

Don't give up. It worked for me and definitely it will work for you too.

Write to me if you still find it difficult to make it work. I will help you.