D darabon Active Member Jun 1, 2022 #1 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 Also: #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
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 Also: #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
DonManfred Expert Licensed User Longtime User Jun 1, 2022 #2 Please use Code tags when posting code Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 1, 2022 #3 This is the problem: com.sun.javafx.robot It is a private API and it doesn't exist in Java 11+. Use this library: https://www.b4x.com/android/forum/threads/jawtrobot-invoke-keyboard-and-mouse-events-etc.55832/ Upvote 0
This is the problem: com.sun.javafx.robot It is a private API and it doesn't exist in Java 11+. Use this library: https://www.b4x.com/android/forum/threads/jawtrobot-invoke-keyboard-and-mouse-events-etc.55832/
D darabon Active Member Jun 1, 2022 #4 DonManfred said: Please use Code tags when posting code Click to expand... Sorry. Upvote 0
D darabon Active Member Jun 1, 2022 #5 Erel said: This is the problem: com.sun.javafx.robot It is a private API and it doesn't exist in Java 11+. Use this library: https://www.b4x.com/android/forum/threads/jawtrobot-invoke-keyboard-and-mouse-events-etc.55832/ Click to expand... Solved thanks. Omm, Can I pack all files into a single exe file? Upvote 0
Erel said: This is the problem: com.sun.javafx.robot It is a private API and it doesn't exist in Java 11+. Use this library: https://www.b4x.com/android/forum/threads/jawtrobot-invoke-keyboard-and-mouse-events-etc.55832/ Click to expand... Solved thanks. Omm, Can I pack all files into a single exe file?
Erel B4X founder Staff member Licensed User Longtime User Jun 1, 2022 #6 You should use the standalone packager to create a package and then use inno-setup to create a single exe installer. Upvote 0
You should use the standalone packager to create a package and then use inno-setup to create a single exe installer.