Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.3
-
Fix Version/s: 1.6.5, 1.7-beta-2
-
Component/s: None
-
Labels:None
-
Environment:Mac OS 10.5.8
Description
In groovy a main method is defined as:
static main(args)
If groovy code is compiled with groovyc and subsequently run with java, it will produce this exception:
"Exception in thread "main" java.lang.NoSuchMethodError: main"
The workaround is to declare the main method as:
static void main(args)
Fixed