I'm a beginner in programming and I'm having an issue when running a Java class. (I'm using Eclipse if it makes any difference). If I create a new class and tick the public static void main(String[] args) method, the code runs as usual. However, if I don't tick the mentioned method, I can't run it "as a Java app" so I have to "run configurations" and then get the error:
Error: Main method not found in class katrina.Six, please define the main method as:
public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application
So, why can't I run a non-main class (if it can be thus called), and how do I extend javafx.application.Application ???
Also, does this mean I always have to use the main method and if yes, then why?
I know I suck at this.
Thanks