Exception running FXMark with JavaFX 9

Vadim Pakhnushev vadim.pakhnushev at oracle.com
Wed Aug 17 12:45:03 UTC 2016


Felix,

The com.sun.javafx.perf.PerformanceTracker is in the javafx.graphics module.

Vadim

On 17.08.2016 10:50, Felix Bembrick wrote:
> OK, I have read the article and followed Rahman's advice (thanks!) and here
> are my VM args now:
>
> -Djavafx.animation.fullspeed=true
> -addmods ALL-DEFAULT,java.se.ee
> -XaddExports:javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED
> -XaddExports:javafx.base/com.sun.javafx.collections=ALL-UNNAMED
> -XaddExports:javafx.base/com.sun.javafx.property=ALL-UNNAMED
> -XaddExports:javafx.base/com.sun.javafx=ALL-UNNAMED
> -XaddExports:javafx.base/com.sun.javafx.event=ALL-UNNAMED
> -XaddExports:javafx.base/com.sun.javafx.perf=ALL-UNNAMED
>
> But, when I run FXMark I now get this error:
>
> Error occurred during initialization of VM
> java.lang.IllegalArgumentException: package com.sun.javafx.perf not in
> contents
>   at java.lang.reflect.Module.implAddExports(java.base at 9-ea/Module.java:591)
>   at java.lang.reflect.Module.access$400(java.base at 9-ea/Module.java:86)
>   at java.lang.reflect.Module$1.addExportsToAllUnnamed(java.base at 9-ea
> /Module.java:1109)
>   at jdk.internal.module.Modules.addExportsToAllUnnamed(java.base at 9-ea
> /Modules.java:124)
>   at jdk.internal.module.ModuleBootstrap.addExtraExports(java.base at 9-ea
> /ModuleBootstrap.java:476)
>   at jdk.internal.module.ModuleBootstrap.boot(java.base at 9-ea
> /ModuleBootstrap.java:322)
>   at java.lang.System.initPhase2(java.base at 9-ea/System.java:1930)
>
> Can anyone point out what I am doing wrong?
>
> Cheers,
>
> Felix
>
>
> On 17 August 2016 at 00:22, Rahman USTA <rahman.usta.88 at gmail.com> wrote:
>
>> Dear Felix;
>>
>> I'm running AsciidocFX with the following JVM parameters. They can help
>> you.
>>
>> -Djava.awt.headless=false
>>                          -XaddExports:javafx.graphics/
>> com.sun.javafx.stage=ALL-UNNAMED -addmods ALL-DEFAULT,java.se.ee
>> -XaddExports:javafx.base/com.sun.javafx.collections=ALL-UNNAMED
>>      -XaddExports:javafx.base/com.sun.javafx.property=ALL-UNNAMED
>>      -XaddExports:javafx.base/com.sun.javafx=ALL-UNNAMED
>>      -XaddExports:javafx.base/com.sun.javafx.event=ALL-UNNAMED
>> -addmods javafx.deploy,ALL-SYSTEM
>>
>> I thought that the followings may help you
>>
>> -addmods ALL-DEFAULT,java.se.ee -XaddExports:javafx.base/com.
>> sun.javafx.perf=ALL-UNNAMED
>>
>> Thanks.
>>
>> 2016-08-16 8:50 GMT+03:00 Felix Bembrick <felix.bembrick at gmail.com>:
>>
>>> I am trying to port FXMark from Java 8 to Java 9 but encounter this
>>> exception:
>>>
>>> Caused by: java.lang.IllegalAccessError: class com.bembrick.fxmark.HUD (in
>>> unnamed module @0x59223fd5) cannot access class
>>> com.sun.javafx.perf.PerformanceTracker (in module javafx.graphics)
>>> because
>>> module javafx.graphics does not export com.sun.javafx.perf to unnamed
>>> module @0x59223fd5
>>>
>>> How do I access PerformanceTracker in Java/JavaFX 9?
>>>
>>> Thanks,
>>>
>>> Felix
>>>
>>
>>
>> --
>> Rahman USTA
>> Istanbul JUG
>> https://github.com/rahmanusta <http://www.kodcu.com/>
>>



More information about the openjfx-dev mailing list