B4J Question OpenJDK package javafx.application does not exist

kris A

Member
Licensed User
Longtime User
I have used Open JDK (https://openjdk.java.net/) not Java SE Development Kit from oracle (https://www.oracle.com/technetwork/java/javase/overview/index.html).

And I found an error while compiling a program as below
with B4J which I got from this forum jsonTree

B4X:
Compiling generated Java code.    Error
src\b4j\example\main.java:7: error: package javafx.application does not exist
public class main extends javafx.application.Application{
                                            ^
Note: src\b4j\example\main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

How to use JavaFx Package from OpenJDK in B4J ?
Kindly please help this problem
 
Last edited:

xulihang

Active Member
Licensed User
Longtime User
Haven't tried using OpenJDK to compile. You may need OpenJFX which is not included in openjdk by default.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top