wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 25
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: 25
And welcome to the Ranch Adrian.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Netbeans 7.0.1 questions
 
Similar Threads
Is Java too difficult for me? Trying to learn with Head first Javabook
Exception object not supported by println method
Sams Java in 21 Days java.lang.NoClassDefFoundError: main
Unsupported major.minor version 49.0
symbol error...HELP!