Running .class File in Command Prompt
<p>I'm very new to Java coding and I am trying to run a simple program to print out "Hello World". So I have already created the program using a source code editor (Notepad++) and I saved that as a .java file. After that, I generated my .class file in Command Prompt. The name of the program is "ExampleProgram".</p>

<p>Now that I have my .class file, I'm trying to run it in Command Prompt so my "Hello World" message will be displayed. However, when I type "java ExampleProgram" it displays a message saying "Error: could not find or load main class ExampleProgram".  </p>

<p>Extra Info: I'm aware of case-sensitivity, both my ExampleProgram.java and ExampleProgram.class are saved in my documents folder, and I have JBK installed.</p>

<pre><code>public class ExampleProgram {
    public static void main(String[] args) {
        System.out.println("Hello World");
}
</code></pre>

<p>}</p>