Java with Atom

I’m attempting to setup Atom for Java for my class, and I feel like I did everything according to documentation, but I still get this error.

Error: Main method not found in class Main, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application [Finished in 0.416s]

I am attempting to run basic code like this
`public class Test {

static void main(String args){

System.out.println("Hello World");

}
}
`

thanks for any help you can give