wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans 7.0.1 questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans 7.0.1 questions" Watch "Netbeans 7.0.1 questions" New topic
Author

Netbeans 7.0.1 questions

Adrian Jakubas
Greenhorn

Joined: Aug 17, 2011
Posts: 3
I type this out of Sams Teach Yourself Java 6 into netbeans 7.0.1

and I get this after build successful

Error: Main method not found in class volcanorobot.VolcanoRobot, please define the main method as:
public static void main(String[] args)
Java Result: 1
Kondwani Chipeta
Greenhorn

Joined: Aug 17, 2011
Posts: 29
As the error message says, there is no method so the VM can not find an entry point to begin execution of your program. Try adding one and see what happens.
Remember a class can compile if it doesn't have a main method but execution requires a main method.


OCPJP 1.6
Kondwani Chipeta
Greenhorn

Joined: Aug 17, 2011
Posts: 29
And welcome to the Ranch Adrian.
 
wood burning stoves
 
subject: Netbeans 7.0.1 questions