This sounds like a bootstrap problem. I suspect that we are missing the
needed --add-exports in build.gradle to build using a JDK that does not
already have javafx.* modules.
I filed the following bug to track this:
https://bugs.openjdk.java.net/browse/JDK-8189111
As a workaround, you can use the Oracle JDK 9 build as the boot JDK.
-- Kevin
Emmanuel Bourg wrote:
Hi,
I've some trouble building OpenJFX 9 with OpenJDK 9+181 and Gradle 3.2.1
on Debian. I get the following compilation errors:
/home/ebourg/openjfx9/modules/javafx.base/src/main/java/com/sun/javafx/binding/SelectBinding.java:47:
error: package sun.util.logging is not visible
import sun.util.logging.PlatformLogger.Level;
^
(package sun.util.logging is declared in module java.base, which
does not export it to module javafx.base)
/home/ebourg/openjfx9/modules/javafx.base/src/main/java/com/sun/javafx/property/PropertyReference.java:36:
error: package sun.reflect.misc is not visible
import sun.reflect.misc.ReflectUtil;
^
(package sun.reflect.misc is declared in module java.base, which
does not export it to module javafx.base)
I tried exporting the _JAVA_OPTIONS variable defined in
README-java-options and adding --add-opens parameters to build.gradle
but it didn't work.
What am I missing?
Emmanuel Bourg