How Do You Invoke the main Section of a Groovy Program?

Problem scenario
Your Groovy code has a section like this:

class Example {
static void main(String[] args) {

But this section above is not executing when you run your Groovy program. There are no errors however. How do you get it to execute?

Possible Solution #1
Remove lines of code (or statements) that are outside the "class Example {…"

Possible Solution #2
See this posting: How Do You Invoke a Class in a Groovy Program?

Leave a comment

Your email address will not be published. Required fields are marked *