javafx

Error: Hash of java.xml (…) differs to expected hash (…) recorded in java.base

对着背影说爱祢 提交于 2021-02-07 18:42:46
问题 Creating simple javafx 11 "hello world" application. Getting error while creating custom JRE. user@user:~/Desktop/javafx/hellofx$ ./run.sh Error: Hash of java.xml (c043b4c28b897656e2a4d36c92ba2f5d52134bce79643236dd36295e14178be7) differs to expected hash (4e7db7fc941d9f316c4aafe02717b5809ee722be8433d283050365e7fd49331f) recorded in java.base Error Code: $JAVA_HOME/bin/jlink --module-path $PATH_TO_FX_MODS:mods --add-modules hellofx --output hellofx #error OS: ubuntu 19.10 $java --version

Error: Hash of java.xml (…) differs to expected hash (…) recorded in java.base

↘锁芯ラ 提交于 2021-02-07 18:42:35
问题 Creating simple javafx 11 "hello world" application. Getting error while creating custom JRE. user@user:~/Desktop/javafx/hellofx$ ./run.sh Error: Hash of java.xml (c043b4c28b897656e2a4d36c92ba2f5d52134bce79643236dd36295e14178be7) differs to expected hash (4e7db7fc941d9f316c4aafe02717b5809ee722be8433d283050365e7fd49331f) recorded in java.base Error Code: $JAVA_HOME/bin/jlink --module-path $PATH_TO_FX_MODS:mods --add-modules hellofx --output hellofx #error OS: ubuntu 19.10 $java --version

Following error occurs when using AdoptOpenJDK and OpenJFX. “Error initializing QuantumRenderer: no suitable pipeline found”

不打扰是莪最后的温柔 提交于 2021-02-07 18:37:41
问题 I am using IntelliJ, Gradle, AdoptOpenJDK 12 and OpenJFX for my project. I am trying creating a simple HelloWorld kind of program to get started with OpenJFX. My project runs fine with OracleJDK but the moment I switch to AdoptOpenJDK 12 and run the project I get the following error in the console: Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found Caused by: java.lang.RuntimeException: No toolkit found I have tried switching to IBM JDK and

Missing JavaFX application class

拥有回忆 提交于 2021-02-07 14:21:07
问题 I have java code like this: package mypackage; import javafx.application.Application; import javafx.stage.Stage; public class MyApp extends Application{ public static void main(String args[]){ launch(args); } public void start(Stage primaryStage){ primaryStage.show(); } } and I've compiled it at ~/myjava/src/mypackage/MyApp.class . then, when I'm running from ~$ java -cp myjava/src mypackage/MyApp why getting error like: Missing JavaFX application class mypackage/MyApp I'm using JDK 8. 回答1:

In order transition on ImageView in JavaFX

懵懂的女人 提交于 2021-02-07 14:20:37
问题 I have already looked at How to wait for a transition to end in javafx 2.1? but it doesn't quite solve my problem. I have a List of ImageView objects, and I want to iterate through this List and perform the following actions on each 'slide' of the List: fade in stay for a few seconds fade out I have the following code in place but since the transition is asynchronous, the loop applies the transition to all the 'slides' at the same time: // The method I am running in my class public void start

Accessing nested properties in JavaFx TableView / TableColumn

假装没事ソ 提交于 2021-02-07 13:23:41
问题 I havea TableView, and I access properties of the list's objects as follows. This works just fine. <TableColumn fx:id="dateColumn" editable="false" prefWidth="135.0" text="Date"> <cellValueFactory> <PropertyValueFactory property="date" /> </cellValueFactory> </TableColumn> However, I'd like to access a nested property of the object, for example: <TableColumn prefWidth="100.0" text="Course"> <cellValueFactory> <PropertyValueFactory property="house.bathroom"/> </cellValueFactory> </TableColumn>

Cannot run JavaFX app on docker for more than a few minutes

。_饼干妹妹 提交于 2021-02-07 12:19:43
问题 I developed an application used as a communication service for a separate web app. I had 0 issues "dockerizing" the web app but the service is proving to be a nightmare. It is based on JavaFX and there is a property that can be set by the user in the config file that makes it so the app does not initialize any windows, menus, containers, etc. This "headless" mode (not sure that is truly headless...) effectively turns the service app into a background service. Let me also preface this by

Cannot run JavaFX app on docker for more than a few minutes

房东的猫 提交于 2021-02-07 12:19:34
问题 I developed an application used as a communication service for a separate web app. I had 0 issues "dockerizing" the web app but the service is proving to be a nightmare. It is based on JavaFX and there is a property that can be set by the user in the config file that makes it so the app does not initialize any windows, menus, containers, etc. This "headless" mode (not sure that is truly headless...) effectively turns the service app into a background service. Let me also preface this by

Associate custom uri schemes with Java self contained application for windows

☆樱花仙子☆ 提交于 2021-02-07 10:00:41
问题 I have a self contained JavaFX application. For an improved user experience, I would like the user to click on a button/link on the browser and start the application. Just like magnet URI for torrent, the link contains metadata that is required to start up the application. Is there a way to generate the executable for JavaFX application to associate with custom URI just like magnet URIs associated with torrent applications. 回答1: Here is how to associate custom URIs with an application. I

Deploy JavaFX application using gradle 6.3, OpenJDK 14 and OpenJFX 14

戏子无情 提交于 2021-02-07 08:02:20
问题 I am developping a JavaFX application using gradle 6.3, OpenJDK 14 and OpenJFX 14 with IntelliJ and I want to deploy it (create a exe file). I used to make JavaFX applications with JDK 8 under Netbeans 11 and the process was simple: Make the application Clean and build Look for the jar in the dist folder (which works perfectly when I click on it) convert it to exe using Launch4j Voilà! Since I am migrating to OpenJDK 14, I wanted to make sure I can deploy the app I am making, so I created an