title: Exception in thread "main" java.lang.ClassNotFoundException: Main
body: <p>Below is my code in IntelliJ</p>
  
  <pre><code>package com.example.helloWorld;
  
  public class HelloWorld {
      public static void main(String[] args) {
          System.out.println("Hello, World!");
      }
  }
  </code></pre>
  
  <p>I got an error as below </p>
  
  <pre><code>Exception in thread "main" java.lang.ClassNotFoundException: Main
  at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:`enter code here`308)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:260)
  at com.intellij.rt.execution.application.AppMain.main(AppMain.java:116)
  </code></pre>
  
  <p>Process finished with exit code 1</p>
  
  <p>Kindly advice</p>