B4J Question Error build standalone file


Active Member
My used libraries are :
Private j As jGetMac
Private hook As NativeHook
Public Robot_ As AWTRobot
Private keycodes As JavaObject
Private mqtt_ As MQTT
Private socket_ As ServerSocket

#if java
import com.sun.javafx.robot.*;
import javafx.scene.Scene;
public static Object newRobot(Scene s){
FXRobot robot = FXRobotFactory.createRobot(s);
return robot;
#End If
#end region

I try to build a standalone package but have an error:
src\b4j\example\main.java:4: error: package javafx.scene does not exist
import javafx.scene.Scene;

My java version is 11 and is OpenJDK
I don't have an error in java 8


Licensed User
Longtime User
Please use Code tags when posting code
Upvote 0