views:

177

answers:

3

I am trying to export a standalone RCP app using Eclipse 3.5.2.

The app has a main pure Java plug-in, and a Java / Groovy plug-in that is used by the main plug-in.

When I export the main RCP plug-in using the "Export Wizard", I get compiler errors saying that the Groovy classes cannot be found, e.g

ERROR in C:\mysrc\src\ch\calcs\providers\CalcProvider.java (at line 8)
 import ch.calcs.ArgSet;

This plug-in works fine when run from within Eclipse.

EDIT: Also tried this using a hand-crafted plug-in (JAR) from link here

Any ideas?

+1  A: 

Did you check the export did reference all the necessary plugins?
(a bit like clicking on the "Add Required Plug-ins" button when you launch it from Eclipse:

alt text)


For checking that your plugin is correct (before exporting it), see the section "Dependencies" of the Vogella RCP tutorial:

alt text

You will see that same button "Add Required Plug-ins".

VonC
+1  A: 

Another thing you could check would be if you are exporting the required packages (in the Runtime tab) and if you selected your source folders for the binary build (in the Build tab of the manifest editor).

Fabian Steeg
I agree (and missed those check in my answer), so +1.
VonC
A: 

I have the same problem. It seems that exporting as an eclipse product recompiles all and doesnt know about groovy classes. Looking at the generated plugin jar shows *.groovy files instead of the compiled classes. Launching from product editor as an eclipse application works fine.

Is there any solution meanwhile?

rve