Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0Release
-
Fix Version/s: 2.0.1Release
-
Component/s: Build and distribution
-
Labels:None
-
Environment:Eclipse Build id: 20100218-1602, groovy-eclipse plugin Version: 2.0.1.20100226-1200-e35, groovy 1.7.1, JDK "1.6.0_17"
-
Number of attachments :
Description
Trying to export a runnable jar, where the main is in a groovy file. The Run Configuration is setup correctly and works.
When you export there is an error...
Jar export finished with problems. See details for additional infos.
Could not find main method from given launch configuration.
And the jar file has everything except the manifest does not have the main specified at all.
Interestingly if you let eclipse generate an ant script, then run the ant script it generates a runnable jar correctly.
How are you performing the export? I am able to export a groovy project to a jar file by right-clicking on the project -> Export... -> Jar File. And then I specify a name for the manifes.