"object is not an instance of declaring class" error
----------------------------------------------------

                 Key: MEXEC-98
                 URL: https://jira.codehaus.org/browse/MEXEC-98
             Project: Maven 2.x Exec Plugin
          Issue Type: Bug
            Reporter: Markus


I got this error when using the exec:java mojo. An other people as well:
http://mail-archives.apache.org/mod_mbox/incubator-clerezza-dev/201006.mbox/%[email protected]%3E

The reason is that I only wrote "public void main(String[] args)" and forgot 
the static. However, this silly error message is due to a bug in 
ExecJavaMojo.java line 291:
main.invoke( main, new Object[]{arguments} );

it should say:
main.invoke( null, new Object[]{arguments} );


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to