-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JavaFX Headless on Windows #113
Comments
Liberica jdk contains monocle only for Linux arm32 platform.
One way to run JavaFX applications without display on Linux is using X virtual framebuffer.
|
Thanks for your reply ! |
Hi Alexander,Sorry for coming back to you but I still cannot build a static image with NIK.And the problem can be produced with a very simple program.Everything is OK until LINK command (last step).After searching, it seems that '.a' libraries cannot be found.Could you please tell me what is realy needed for NIK to work ?The test I want to make is - to start from a virgin new LINUX install WITHOUT any other tools installed !- to install all packages/tools needed by NIK- put my 'jar' file and process the command for STATIC image.Do you have this kind of test integrated in yout development platform ?I precise that everything is OK from WINDOWS.I cannot believe that it is not possible to build such a static image from LINUX.Thank you for precising the packages needed for NIK....And please, make this test to start from a pure empty DEBIAN distribution for instance to check that hereafter program cannot be processed...Many thanks for your kind help ! Best regards,gilles---------------------------------------------------------------------------------------------import javafx.application.Application;import javafx.event.ActionEvent;import javafx.event.EventHandler;import javafx.scene.Scene;import javafx.scene.control.Button;import javafx.scene.layout.StackPane;import javafx.stage.Stage; public class SampleFx extends Application { public static void main(String[] args) { launch(args); } @OverRide public void start(Stage primaryStage) { primaryStage.setTitle("Hello World!"); Button btn = new Button(); btn.setText("Say 'Hello World'"); btn.setOnAction(new EventHandler<ActionEvent>() { @OverRide public void handle(ActionEvent event) { System.out.println("Hello World!"); } }); StackPane root = new StackPane(); root.getChildren().add(btn); primaryStage.setScene(new Scene(root, 300, 250)); primaryStage.show(); }}---------------------------------------------------------------------------------------------Message ID: ***@***.***>
|
Hi,
I am developping a server application that processed images : creating bitmap images for instance...
Of course, my objective is to get a cross-platform single jar file!
I use Full LIBERICA NIK v22.3 on WINDOWS 11.
Everything works well when I use standard Liberica native image on Windows but fails on LINUX because of 'no display' !
So, if my understanding is correct, I need to use JavaFX with spcial 'MONOCLE' configuration...
Again, if my reading is correct I can use MONOCLE configuration by applying arguments as follows
-Dtestfx.robot=glass
-Dglass.platform=Monocle
-Dmonocle.platform=Headless
-Dprism.order=sw
But it fails ! Error is "Failed to load Glass factory class".
So my questions are :
Thanks a lot for your help
The text was updated successfully, but these errors were encountered: