B4J Question OpenJDK 11+ Openfx 11 - Canvas error

prajinpraveen

Active Member
Licensed User
Longtime User
Good day,

from this thread , does it mean that UI applications will not work with Java11? I am running a web application

I tried downloading OpenJDK 11 + OpenJFX 11: download link . I get the following error

1589215395754.png


Should I switch back to Java 8?

thank you
 

Attachments

  • 1589215344082.png
    1589215344082.png
    56 KB · Views: 133

prajinpraveen

Active Member
Licensed User
Longtime User
Good Day,

Please see the error message below

B4J Version: 8.10
Java Version: 11
Parsing code. (0.00s)
Building folders structure. (0.01s)
Compiling code. (0.00s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Compiling generated Java code. Error
B4J line: 40
cvs.DrawImageRotated(smiley, x, y, size, size, de
src\b4j\example\main.java:141: error: package javafx.scene.image does not exist
_cvs.DrawImageRotated((javafx.scene.image.Image)(_smiley.getObject()),_x,_y,_size,_size,_deg);
^
1 error


I have also attached a stripped-down version of the code in a non-ui app using jFX 7.50.
The code works fine with UI App (open jdk 11) without using jFX library

The original code was part of a non ui - ABMaterial based server application, running on Java 8

Thank you
 

Attachments

  • canvas non ui.zip
    5.5 KB · Views: 144
Upvote 0
Top