title: Error: Could not find or load main class Orders
body: <p>So I have a folder where some files are sitting. One PDF (the homework assignment), one .vscode folder with the Launch.json inside for debugging, and 3 .java files.</p>
  
  <p>These files are: Orders.java, Truck.java, and Car.java</p>
  
  <p>Truck and Car contain classes, Orders contains the main program:</p>
  
  <pre><code>public class Orders {
      public static void main(String[] args) {
          //actual program inside
      }
  }
  </code></pre>
  
  <p>I used VS Code's gear button in the debugger pane to create the launch.json, which gave me this for a launch option:</p>
  
  <pre><code>"configurations": [
      {
          "type": "java",
          "name": "Debug (Launch)-Orders",
          "request": "launch",
          "mainClass": "Orders",
          "args": ""
      },
  </code></pre>
  
  <p>I set some breakpoints hoping to be off to the races. However when I hit the green play button to run the program, I get the error listed in the title of the post: <code>Error: Could not find or load main class Orders</code></p>
  
  <p>Is there something wrong with Launch.json or is there something else that could be causing this issue?</p>
  
  <p>Also, if I run the program in the VS Code provided terminal:</p>
  
  <pre class="lang-none prettyprint-override"><code>Windows PowerShell
  Copyright (C) 2016 Microsoft Corporation. All rights reserved.
  d.
  
  PS C:\Users\Profile Name\Documents\RIT\Fall 2017\ISTE 200\HW\HW3&gt; java Orders
  </code></pre>
  
  <p>The program runs fine but hits no breakpoints.</p>
  
  <p>I'm using the Redhat Java Support extension, if that matters.</p>