Welcome to the Ranch
I can't see how you can get that error from that particular command line instruction. If you didn't have the HelloWorld.java file in that folder, you would get something like this:-
The $ represents the prompt. The only way you can get “main class not found” is if you used the
java command. There are several possible explanations.
1: The code failed to compile, but you would have error messages from the javac tool.2: The name of the file is wrong. Be careful about the difference between HelloWorld and Helloworld.3: If you name a class without a main method you can also get that same error message.4: The file is there but you are trying to open the wrong file.I think no 4 is what is happening here. What you are supposed to do is this:-
Note you don't write .java or anything for the second instruction. It takes the name of the class, not the name of a file.
You haven't shown a compile time error. What you are showing is the JVM starting, the runtime being unable to complete the task you have given it, and throwing an exception. Remember all exceptions occur at runtime. This is what happened when I tried it with JDK9u1 and no hello world applications anywhere near:-
See that the last line of the error message tells you there is an Exception, and the Error object mentioned in the first line also counts as a sort of exception.
I don't think it is a good idea to keep all your work in the desktop folder. It will become so full youi will never see the desktop picture again

Look
here for what I usually recommend. Move all your Java® work into your new directory. Stop using NotePad. Look
here for what I recommend (Notepad++) and which options I think you should use.