This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Currently, a groovy script can not be set as a "Main Class". Granted, maybe that terminology doesn't quite apply, but the purpose is to allow the "run main project" button on the toolbar to be able to execute a groovy script.
*** This issue has been marked as a duplicate of 164288 ***