jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • GRECLIPSE
  • GRECLIPSE-660

export runnable jar when main is in groovy file fails to generate correct manifest

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major 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"

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.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Andrew Eisenberg added a comment - 16/Mar/10 2:54 PM

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.

Show
Andrew Eisenberg added a comment - 16/Mar/10 2:54 PM 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.
Hide
Permalink
Jim Morris added a comment - 16/Mar/10 4:08 PM

I use Menu-File/Export Select Java/Runnable JAR FIle, Next> select the Runnable configuration, set the export destination, select Package required libraries into generated JAR click Finish, you get the Runnable JAR File Export dialog with the error.

However when I just tried it it worked! and produced a runnable Jar this time. So at the moment I cannot reproduce it, I have done a lot of work on the project since reporting this, but I don't know what would have fixed this.

Thanks

Show
Jim Morris added a comment - 16/Mar/10 4:08 PM I use Menu-File/Export Select Java/Runnable JAR FIle, Next> select the Runnable configuration, set the export destination, select Package required libraries into generated JAR click Finish, you get the Runnable JAR File Export dialog with the error. However when I just tried it it worked! and produced a runnable Jar this time. So at the moment I cannot reproduce it, I have done a lot of work on the project since reporting this, but I don't know what would have fixed this. Thanks
Hide
Permalink
Andrew Eisenberg added a comment - 16/Mar/10 5:31 PM

Thanks for getting back to me. I am tentatively closing this, but feel free to re-open if you experience this again. It would be helpful to have a failing project that I could work with.

Show
Andrew Eisenberg added a comment - 16/Mar/10 5:31 PM Thanks for getting back to me. I am tentatively closing this, but feel free to re-open if you experience this again. It would be helpful to have a failing project that I could work with.
Hide
Permalink
jones added a comment - 24/Nov/11 8:11 AM

I have exactly the same problem right now on eclipse... Generating an ant script and creating the JAR from it works. Interesting...

Show
jones added a comment - 24/Nov/11 8:11 AM I have exactly the same problem right now on eclipse... Generating an ant script and creating the JAR from it works. Interesting...
Hide
Permalink
Andrew Eisenberg added a comment - 24/Nov/11 1:04 PM

If you can explain how I can reliably reproduce, please re-open.

Show
Andrew Eisenberg added a comment - 24/Nov/11 1:04 PM If you can explain how I can reliably reproduce, please re-open.

People

  • Assignee:
    Andrew Eisenberg
    Reporter:
    Jim Morris
Vote (0)
Watch (1)

Dates

  • Created:
    05/Mar/10 4:02 AM
    Updated:
    24/Nov/11 1:04 PM
    Resolved:
    16/Mar/10 5:32 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.