[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Exporting a plug-in: delployment phase

Hi,

i've just finished my plug-in; it runs without problems under a plug-in
Eclipse project. It's time to export it but i've got some problems.

My plug-in has three packages:

com.spulci.C2MCM.engine
com.spulci.C2MCM.gui
com.spulci.C2MCM.popup.action

and it uses dom4j open source API. I've added a lib folder to the package
explorer and i put dom4j-1.6.1.jar inside this folder; i've added a User
Library called "dom4j external library" and I made it point to
f:\eclipse\workspace\c2mcm\lib path (where the .jar is located). In the
RunTime sheet I choose all the three packages as "exported packages" and I've
added a reference to dom4-1.6.1.jar in the sheet ClassPath section; the
package visibility section (only for Eclipse 3.1) is "visible to downstream
plug-ins". In the Build Configuration sheet i do not check "Custom build" and
i do not add voices to Runtime Information section (there's just the "." voice
declared; then I unchecked all the voice in the Source Build section (I do not
want sources to be inclued) while I checked in the Binary Build the META-INF,
plugin.xml, lib folder and bin folder.

Calling the export wizard with the option to obtain an archive file in the
specified path with source compat. to ver 1.4 and class compat. to ver 1.2, I
obtained a zip without errors where the main folder is "plugin" as I expected.

I close Eclipse, i'll unzip the plugin in the main root of eclipse platform
(as for the other plug-ins). I start Eclipse and I can see my plug-in
correctly displayed in the registry. When i activate it from the pop-up menù
chosen as extension point I obtain this error: "The chosen operation is not
currently available".

Any idea about this error? I'm quite sure I have to specify something more in
the Build sheet, right?

Thanks a lot for your help.

Bye

Simon