title: JFoenix in Java 11
body: <p>this is my pom.xml file for using javafx 11 and JFoenix 9 in my project.
  But when I compile and run javafx with maven it gets me this error:</p>
  
  <pre><code>Caused by: java.lang.IllegalAccessError: class com.jfoenix.skins.JFXGenericPickerSkin (in module com.jfoenix) cannot access class com.sun.javafx.binding.ExpressionHelper (in module javafx.base) because module javafx.base does not export com.sun.javafx.binding to module com.jfoenix
  </code></pre>
  
  <p>I have added this commands to compilation options:</p>
  
  <pre><code>--add-exports javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix
  --add-exports javafx.controls/com.sun.javafx.scene.control=com.jfoenix
  --add-exports javafx.base/com.sun.javafx.binding=com.jfoenix
  --add-exports javafx.graphics/com.sun.javafx.stage=com.jfoenix
  --add-exports javafx.base/com.sun.javafx.event=com.jfoenix
  </code></pre>
  
  <p>Still nothing changes. Can someone help me to solve it? I'm using Intellij IDEA and Java 11.0.3.</p>
  
  <p>My module-info.java file:</p>
  
  <pre><code>module com {
  requires javafx.controls;
  requires javafx.fxml;
  requires javafx.base;
  requires javafx.graphics;
  requires com.jfoenix;
  
  opens com.Client.Controller to javafx.fxml;
  exports com;
  }
  </code></pre>
  
  <p>My pom.xml file:</p>
  
  <pre><code>&lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;maven.compiler.source&gt;11&lt;/maven.compiler.source&gt;
      &lt;maven.compiler.target&gt;11&lt;/maven.compiler.target&gt;
  &lt;/properties&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
          &lt;artifactId&gt;javafx-controls&lt;/artifactId&gt;
          &lt;version&gt;11.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
          &lt;artifactId&gt;javafx-fxml&lt;/artifactId&gt;
          &lt;version&gt;11.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
          &lt;artifactId&gt;javafx-base&lt;/artifactId&gt;
          &lt;version&gt;11.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
          &lt;artifactId&gt;javafx-graphics&lt;/artifactId&gt;
          &lt;version&gt;11.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/junit/junit --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.12&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.jfoenix&lt;/groupId&gt;
          &lt;artifactId&gt;jfoenix&lt;/artifactId&gt;
          &lt;version&gt;9.0.9&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.8.0&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;release&gt;11&lt;/release&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.0.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;mainClass&gt;com.App&lt;/mainClass&gt;
                  &lt;options&gt;
                      &lt;option&gt;--add-opens&lt;/option&gt;
                      &lt;option&gt;javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix&lt;/option&gt;
                      &lt;option&gt;--add-opens&lt;/option&gt;
                      &lt;option&gt;javafx.controls/com.sun.javafx.scene.control=com.jfoenix&lt;/option&gt;
                  &lt;/options&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>