title: Visual Studio Code - "Error:spawn jdb ENOENT" trying to debug java app
body: <p>I am trying to debug java application in Visual Studio Code and getting following error:
   <code>"Error:spawn jdb ENOENT".</code></p>
  
  <p>Vs Code is suggesting to update my launch.json which have following:</p>
  
  <pre><code>{
      "version": "0.2.0",
      "configurations": [
          {
              "name": "Java",
              "type": "java",
              "request": "launch",
              "stopOnEntry": true,
              "cwd": "${fileDirname}",
              "startupClass": "${fileBasename}",
              "options": [
                  "-classpath",
                  "\"${fileDirname};.\""
              ]
          },
          {
              "name": "Java Console App",
              "type": "java",
              "request": "launch",
              "stopOnEntry": true,
              "cwd": "${fileDirname}",
              "startupClass": "${fileBasename}",
              "options": [
                  "-classpath",
                  "\"${fileDirname};.\""
              ],
              "externalConsole": true
          }
      ]
  }
  </code></pre>
  
  <p>I am building using maven and have following  VSCode plugins installed <a href="https://github.com/DonJayamanne/javaVSCode" rel="nofollow">https://github.com/DonJayamanne/javaVSCode</a>.</p>
  
  <p>Maven pow.xml</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
      http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.ams-sample&lt;/groupId&gt;
    &lt;artifactId&gt;AMSSample&lt;/artifactId&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;NumberGenerator&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;3.8.1&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
    &lt;groupId&gt;com.microsoft.azure&lt;/groupId&gt;
    &lt;artifactId&gt;azure-storage&lt;/artifactId&gt;
    &lt;version&gt;4.0.0&lt;/version&gt;
     &lt;scope&gt;system&lt;/scope&gt;
      &lt;systemPath&gt;${basedir}/lib/azure-storage-4.0.0.jar&lt;/systemPath&gt;
  &lt;/dependency&gt;
   &lt;dependency&gt;
    &lt;groupId&gt;com.microsoft.azure&lt;/groupId&gt;
    &lt;artifactId&gt;azure-core&lt;/artifactId&gt;
    &lt;version&gt;0.9.4&lt;/version&gt;
     &lt;scope&gt;system&lt;/scope&gt;
     &lt;systemPath&gt;${basedir}/lib/azure-core-0.9.0.jar&lt;/systemPath&gt;
  &lt;/dependency&gt;
       &lt;dependency&gt;
    &lt;groupId&gt;com.microsoft.azure&lt;/groupId&gt;
    &lt;artifactId&gt;azure-media&lt;/artifactId&gt;
    &lt;version&gt;0.9.4&lt;/version&gt;
    &lt;scope&gt;system&lt;/scope&gt;
    &lt;systemPath&gt;${basedir}/lib/azure-media-0.9.0.jar&lt;/systemPath&gt;
  &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>My assumption for now that VS Code is not able to find jdb.exe and i am trying to find where it should be configured.</p>