I'm new to Java. I'm following step-by-step Java tutorials from youtube and I'm getting this error message everytime I try to run it but I'm literally copying codes what he writes in the video and still getting an error. I'm using Netbeans.
Error: Could not find or load main class javaapplication1.JavaApplication1
C:\Users\Otto\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53:
Java returned: 1
BUILD FAILED (total time: 0 seconds)
My code:
public class HelloWorld {
public static void main(String[] args) {
// Prints "Hello, World" in the terminal window.
System.out.println("Hello, World");
}
}