Re: Exception running FXMark with JavaFX 9

2016-08-17 Thread Felix Bembrick
Ah, thanks Vadim.

That would certainly explain the exception!

Cheers,

Felix

> On 17 Aug 2016, at 22:45, Vadim Pakhnushev  
> wrote:
> 
> 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@9-ea/Module.java:591)
>>  at java.lang.reflect.Module.access$400(java.base@9-ea/Module.java:86)
>>  at java.lang.reflect.Module$1.addExportsToAllUnnamed(java.base@9-ea
>> /Module.java:1109)
>>  at jdk.internal.module.Modules.addExportsToAllUnnamed(java.base@9-ea
>> /Modules.java:124)
>>  at jdk.internal.module.ModuleBootstrap.addExtraExports(java.base@9-ea
>> /ModuleBootstrap.java:476)
>>  at jdk.internal.module.ModuleBootstrap.boot(java.base@9-ea
>> /ModuleBootstrap.java:322)
>>  at java.lang.System.initPhase2(java.base@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  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 :
>>> 
 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 
> 


Re: Exception running FXMark with JavaFX 9

2016-08-17 Thread Vadim Pakhnushev

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@9-ea/Module.java:591)
  at java.lang.reflect.Module.access$400(java.base@9-ea/Module.java:86)
  at java.lang.reflect.Module$1.addExportsToAllUnnamed(java.base@9-ea
/Module.java:1109)
  at jdk.internal.module.Modules.addExportsToAllUnnamed(java.base@9-ea
/Modules.java:124)
  at jdk.internal.module.ModuleBootstrap.addExtraExports(java.base@9-ea
/ModuleBootstrap.java:476)
  at jdk.internal.module.ModuleBootstrap.boot(java.base@9-ea
/ModuleBootstrap.java:322)
  at java.lang.System.initPhase2(java.base@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  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 :


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 





Re: Exception running FXMark with JavaFX 9

2016-08-17 Thread Felix Bembrick
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@9-ea/Module.java:591)
 at java.lang.reflect.Module.access$400(java.base@9-ea/Module.java:86)
 at java.lang.reflect.Module$1.addExportsToAllUnnamed(java.base@9-ea
/Module.java:1109)
 at jdk.internal.module.Modules.addExportsToAllUnnamed(java.base@9-ea
/Modules.java:124)
 at jdk.internal.module.ModuleBootstrap.addExtraExports(java.base@9-ea
/ModuleBootstrap.java:476)
 at jdk.internal.module.ModuleBootstrap.boot(java.base@9-ea
/ModuleBootstrap.java:322)
 at java.lang.System.initPhase2(java.base@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  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 :
>
>> 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 
>


Re: Exception running FXMark with JavaFX 9

2016-08-16 Thread dalibor topic



On 16.08.2016 07:50, Felix Bembrick wrote:


How do I access PerformanceTracker in Java/JavaFX 9?


Please see http://openjdk.java.net/jeps/261

cheers,
dalibor topic

--
 Dalibor Topic | Principal Product Manager
Phone: +494089091214  | Mobile: +491737185961


ORACLE Deutschland B.V. & Co. KG | Kühnehöfe 5 | 22761 Hamburg

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher

 Oracle is committed to developing
practices and products that help protect the environment


Exception running FXMark with JavaFX 9

2016-08-16 Thread Felix Bembrick
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