title: Java Error: Could not find or load main class Test
body: <p>Searched and can't find a reason why this doesn't work. I get this error when trying to run a simple program:</p>
  
  <pre><code>public class Test {
      public static void main( String[] args) {
          System.out.println("Hello");
      }
  }
  </code></pre>
  
  <p>I have used the gear to automatically generate the launch.json file. I have also never really done anything before. I'm using VSCode with the redhat java and java debugger extensions. I have java 1.8.0 installed (+jdk)</p>
  
  <p>launch.json code:</p>
  
  <pre><code>{
  "version": "0.2.0",
  "configurations": [
      {
          "type": "java",
          "name": "Debug (Launch)-Test",
          "request": "launch",
          "cwd": "${workspaceFolder}",
          "stopOnEntry": false,
          "mainClass": "Test",
          "args": ""
      },
      {
          "type": "java",
          "name": "Debug (Attach)",
          "request": "attach",
          "hostName": "localhost",
          "port": 0
      }
  ]
  }
  </code></pre>