title: Intellij IDEA 2018.2 does not recognize the JavaFX packages with JDK 10
body: <p>I have searched but not found any detailed information about it. In <a href="http://www.oracle.com/technetwork/java/javafx/downloads/index.html" rel="nofollow noreferrer">http://www.oracle.com/technetwork/java/javafx/downloads/index.html</a> it says </p>
  
  <blockquote>
    <p>As of JDK 7u6 JavaFX is included with the standard JDK and JRE bundles</p>
  </blockquote>
  
  <p>But I am getting error on compile the code includes <code>javafx.*</code> packages. The packages are not founding. I am using Oracle JDK 10.0.2 and Intellij Idea 2018.2. Code is worked after I added the <code>$JAVA8_HOME/jre/lib/ext/jfxrt.jar</code> as library.</p>
  
  <p>But the strange thing is I am able to build the code to target bytecode version 8 <strong>without adding the jar file from JDK 8</strong> as above.</p>
  
  <p>So the question is </p>
  
  <p>How can I get the latest JavaFX?</p>
  
  <p>Is the latest JavaFX is in the JDK 8?</p>
  
  <h1>UPDATE</h1>
  
  <p>JDK 10 includes JavaFX and compiled and ran successfully in command line. There is a problem with Intellij IDEA 2018.2. It does not recognize the JavaFX packages.</p>
  
  <p>The error message in Intellij:</p>
  
  <blockquote>
    <p>Error:(3, 26) java: package javafx.application does not exist</p>
  </blockquote>
  
  <p>Note: There is no error while coding in editor (Not underling red). Error occurs when compiling in Intellij.</p>
  
  <p>Updated question title.</p>