Gettiing errors when trying to run Creating Objects lesson in Netbeans
Hello, I am getting errors in the output seen at the bottom of the screen. Can anyone help me please? My code */ package animal2; /** * * @author chris */ public class Animal2 { void bark(){ System.out.println("Woof-Woof"); } } public MyClass{ public static main void (String[] args) { Animal2 dog = new Animal2(); dog.bark(); } } My Output run: Error: Main method not found in class animal.Animal, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application C:\Users\chris\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 0 seconds)