Skip to content
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

Launch JavaFX Application Causes Exception #52

Open
danPec13 opened this issue Sep 18, 2020 · 1 comment
Open

Launch JavaFX Application Causes Exception #52

danPec13 opened this issue Sep 18, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@danPec13
Copy link

After starting the java 11 remote server at port 8270
java --module-path /opt/javafx-sdk-11.0.2/lib --add-modules javafx.controls,javafx.fxml,javafx.base,javafx.graphics,javafx.media,javafx.swing,javafx.web -Djdk.gtk.version=2 -jar /opt/robot_javafx_jars/javafxlibrary-0.6.0.jar

I attempt to run my robot file with my IP Address:

*** Settings ***
Library     Remote	 http://ip_address:8270	     WITH NAME	JavaFXLibrary

*** Test Cases ***
Test Text Field Text Should Be
	Launch JavaFX Application	org.ocui.login.LoginUI

and am getting the error FxRobot not initialized, launch test application with the library. My start and main method are in the LoginUI class and launches normally for java fx without any arguments. After tracing through the JavaFXLibrary code, I don't understand why there would be an exception thrown when creating the new session for launching the application. Just wondering if I am missing anything in the robot keyword.

Below is the log file:

KEYWORD: JavaFXLibrary . Launch Javafx Application org.ocui.login.LoginUI
Documentation: Launches JavaFX application with the given arguments.
Start / End / Elapsed: 	20200918 14:22:03.775 / 20200918 14:22:09.333 / 00:00:05.558
14:22:09.332 	INFO 	Starting application:org.ocui.login.LoginUI 	
14:22:09.332 	INFO 	JavaFXLibrary keyword has failed! 	
14:22:09.332 	ERROR 	FxRobot not initialized, launch test application with the library 	
14:22:09.333 	FAIL 	Unable to launch application: org.ocui.login.LoginUI
@sampeson sampeson added the bug Something isn't working label Sep 21, 2020
@sampeson
Copy link
Contributor

Java 11 is not yet supported, we have #23 on the works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants