title: JavaFX-11 with VSCode
body: <p>I must be missing something obvious here... I am experimenting with VSCode (coming from Eclipse), but I am unable to get VSCode to see the JavaFX11 libraries. In the import statements, all references to JavaFX components are marked:</p>
  
  <pre><code>[Java] The import javafx cannot be resolved
  </code></pre>
  
  <p>In Eclipse, this is handled with a "User Library", which generates an entry in .classpath</p>
  
  <pre><code>&lt;classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/JavaFX11"&gt;
      &lt;attributes&gt;
          &lt;attribute name="module" value="true"/&gt;
      &lt;/attributes&gt;
  &lt;/classpathentry&gt;
  </code></pre>
  
  <p>While VSCode seemingly understands the rest of the .classpath from Eclipse, it does not understand this. Replacing the path attribute with the actual location on disk also does not work.</p>
  
  <p>For clarity:</p>
  
  <ul>
  <li>This question is specifically about Java 11. In earlier Java versions, JavaFX was part of the JDK. In Java 11, it has been moved to a set of external modules.</li>
  <li>I do not want to use Maven or Gradle. I need to directly reference the modules without using a build tool.</li>
  </ul>
  
  <p>For extra points, it would be nice if VSCode could also directly execute the JavaFX application. However, it is acceptable if I have to start the application from the command line with explicit module- and class-paths</p>