title: Eclipse JavaFX - Ubuntu 19.1 - javafx Cannot be resolved
body: <h1>Eclipse JavaFX - Ubuntu 19.1 - EclipseJava - JavaFX not found</h1>
  
  <p>Hello </p>
  
  <p>I use Linux Mint (19.1) with EclipseForJavaDeveloppers. I created a new JavaFx project in Eclipse, resulting in the following:</p>
  
  <blockquote>
    <p>The import javafx cannot be resolved.</p>
  </blockquote>
  
  <p>When i try to identify where my javafx packages are located (which openjfx), there is no response. I found however some javafx jars in /usr/share/java...</p>
  
  <p>Does someone know how to setup my system correctly?</p>
  
  <h1>Information (system)</h1>
  
  <h2>Packages installed with apt:</h2>
  
  <ul>
  <li>default-jdk</li>
  <li>default-jre</li>
  <li>openjfx</li>
  </ul>
  
  <h2>Environment variables</h2>
  
  <p>I have added the enviroment variables to my .bashrc as follows:</p>
  
  <pre><code>export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
  export JAVAFX_HOME="/usr/share/java"  
  </code></pre>
  
  <h2>Java version</h2>
  
  <p>The "java -version" is:</p>
  
  <pre><code>openjdk version "11.0.2" 2019-01-15
  OpenJDK Runtime Environment (build 11.0.2+9-Ubuntu-3ubuntu118.04.3)
  OpenJDK 64-Bit Server VM (build 11.0.2+9-Ubuntu-3ubuntu118.04.3, mixed  
  mode, sharing)
  </code></pre>
  
  <h2>Ubuntu version</h2>
  
  <p>The Ubuntu Release version "lsb_release -a" is:</p>
  
  <pre><code>LSB modules are available.
  Distributor ID: LinuxMint
  Description:    Linux Mint 19.1 Tessa
  Release:    19.1
  Codename:   tessa
  </code></pre>