Testing your JavaFX applications on JDK 9
tbee at tbee.org
Sun Jan 15 09:04:03 UTC 2017
That indeed works, thanks Vadim. And of course my approach does not work because the gradle.properties are read after its JVM has already started.
On 14-1-2017 21:37, Vadim Pakhnushev wrote:
> In JavaFX we use _JAVA_OPTIONS environment variable to workaround this:
> Note that if you are building on Windows without Cygwin, you need to remove quotes.
> On 14.01.2017 23:26, Tom Eugelink wrote:
>> On 11-1-2017 20:14, Kevin Rushforth wrote:
>>> As you may know JDK 9 has hit the feature extension complete milestone . We still have a small number of weeks to fix P1-P3 bugs, but we need to know about them in order to fix them. Our focus will be on bugs that are new in JDK 9 (regressions).
>>> I ask all JavaFX developers to please download JDK 9 early access  and test your application. You can report any bugs via bugs.java.com . If you have any questions about whether a behavior is a bug or is expected, please ask on this alias or on the jigsaw-dev alias .
>> Not sure if I'm allowed to ask here because it is a Gradle problem, but since JavaFX is also build using Gradle: I'm not even getting JFXtras to start compiling with Gradle 3.3 because of:
>> /"java.lang.reflect.InaccessibleObjectException: Unable to make protected java.lang.Package java.lang.ClassLoader.getPackages() accessible: module java.base does not "opens java.lang" to unnamed module @aa1f72z"
>> /Probably related to: https://issues.gradle.org/browse/GRADLE-3565
>> Having a basic understand on jigsaw and decent google skills I've gathered that this is a module configuration problem, and that it should be solvable by adding to gradle.properties:
>> /org.gradle.jvmargs=//--add-opens java.base/java.lang=ALL-UNNAMED
>> /But alas...
>> Any pointers?
More information about the openjfx-dev