The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

ThomasHo (3) [Avatar] Offline
Hello everybody,
I am not able to compile and run Groovy-scripts. I take a very first example Gold.groovy . I can compile it with
groovyc Gold.groovy

.. when I try to start it thereafter with:
java Gold

.. I get the error message
"Fehler: Hauptklasse Gold konnte nicht gefunden oder geladen werden" - which means in english ~ "Main class not found"

Has anybody a hint what I could try or where to find the error?

Thanks in forehand
earlybits (5) [Avatar] Offline
Since I can't read German, I think the compiler is complaining that there is no main method i.e. entry point to drive your class, for example

class Gold{
public static void main(String[] args){