javafx-11

Getting errors when runing javafx11 on raspberry pi using gradle

安稳与你 提交于 2020-04-18 12:33:07
问题 I am able to build my javafx11 application, but I get errors when running it using ./gradlew run The error I get says something about unable to open DISPLAY I have tried on both a terminal only install of raspbian and a full desktop install as well. So far I have done these things: 1) Install bellsoft full jdk 2) git clone gradle project 3) ./gradlew run What am I doing wrong? 回答1: Nevermind, I figured it out after much, much more googling. I ended up using nodm . 来源: https://stackoverflow

A Problem related to mysql database and nullpointerexception

泪湿孤枕 提交于 2020-04-17 21:34:38
问题 I made a JavaFX Application, and its GUI has these four following things: A TextField , called name (takes in the username) A PasswordField , called password (takes in the password) A ToggleGroup , called gender (there's a method related to this ToggleGroup (male,female,other)) A TextField , called locationField (takes in the location name) There is a sign up button at the bottom that takes all the data and saves it into the MySQL database Here's the method related to the ToggleGroup public

A Problem related to mysql database and nullpointerexception

五迷三道 提交于 2020-04-17 21:31:16
问题 I made a JavaFX Application, and its GUI has these four following things: A TextField , called name (takes in the username) A PasswordField , called password (takes in the password) A ToggleGroup , called gender (there's a method related to this ToggleGroup (male,female,other)) A TextField , called locationField (takes in the location name) There is a sign up button at the bottom that takes all the data and saves it into the MySQL database Here's the method related to the ToggleGroup public

Getting error while creating JavaFX11 application in Apache Netbeans 10

依然范特西╮ 提交于 2020-01-30 05:40:34
问题 i am new to java fx and i have downloaded Apache Netbeans 9 which runs on java 11. since java fx is shipped separately, i have downloaded openjfx-11.0.1_SDK and followed steps in this link https://openjfx.io/openjfx-docs/#install-javafx when i try to create java fx application in apache netbeans , i am getting below error Failed to automatically set-up a JavaFX Platform. Please go to Platform Manager, create a non-default Java SE platform, then go to the JavaFX tab, enable JavaFX and fill in

Error: JavaFX runtime components are missing - JavaFX 11 and OpenJDK 11 and Eclipse IDE

删除回忆录丶 提交于 2020-01-14 14:35:43
问题 I have this classical issue: Using JavaFX 11 with OpenJDK 11 together with Eclipse IDE. Error: JavaFX runtime components are missing, and are required to run this application I have OpenJDK 11.0.2 dell@dell-pc:~$ java -version openjdk version "11.0.2" 2019-01-15 OpenJDK Runtime Environment 18.9 (build 11.0.2+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode) dell@dell-pc:~$ And I also have JavaFX 11 SDK . By the way! I'm using Lubuntu Linux 18.10 if you wonder. Then I have included

Cannot access JavaFX class “WebPage” in IntelliJ-IDEA

廉价感情. 提交于 2020-01-14 04:53:07
问题 I've been using JavaFX-11 for a while. I set JavaFX as a Global library in my Project structure. I also added all the modules inside as required in the module-info.class file of my project. This is working fine, but now I need a Class, "WebPage", that's inside the javafx.web module. Specifically, it's inside javafx.web.com.sun.webkit.WebPage. However, my IDE, Intellij-IDEA doesn't access it. When I type the whole path the tooltip says that, Package 'com.sun.webkit' is declared in javafx.web,

Mixed Modular and Non-Modular Development in Eclipse using Java 11

…衆ロ難τιáo~ 提交于 2020-01-04 14:03:15
问题 It's been a while since I do Java programming and I am surprised to come back to it with the entire landscape being foreign to me post project jig-saw. I have trouble using Eclipse (2018-09, 4.9.0) standard Java project with mixed modular and non-modular environment. Specifically, I am attempting to combine JavaFX 11 (modularized) and Apache POI 4.1 (non-modularized) using Eclipse platform (base Java project without Gradle or Maven). In my module-info.java I have the following, module myapp {

How to fix jvm options exports javafx 11 to com.jfoenix on gradle idea?

柔情痞子 提交于 2020-01-03 03:13:08
问题 It's been 3 days that I look on the internet how to fix this on gradle Caused by: java.lang.IllegalAccessError: class com.jfoenix.skins.JFXTabPaneSkin (in module com.jfoenix) cannot access class com.sun.javafx.scene.control.behavior.TabPaneBehavior (in module javafx.controls) because module javafx.controls does not export com.sun.javafx.scene.control.behavior to module com.jfoenix On simple idea projects I was adding --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=com

JavaFX applications built to target Java 8 - How to keep running with Java 11?

早过忘川 提交于 2019-12-31 03:36:09
问题 I recently learned about JavaFX not being included in Java 11, and have a question about how this will work. Right now, I maintain an application that targets Java 8, uses mostly Swing but some JavaFX, and has a non-developer user base. Some of those users are on older operating systems, so I'd like to continue targeting Java 8. However, Java 11 comes out next month, and I'm concerned that some of the users on newer operating systems will upgrade to Java 11, and the JavaFX components of the

custom jre with javaFX 11

天大地大妈咪最大 提交于 2019-12-31 03:04:36
问题 I'm Using JDK11 and JavaFX11. I created a custom JRE for my sample FX module program using Jlink, but when I try to run with the custom JRE, it renders errors as below: This is how I created my custom JRE (no errors) jlink --module-path ..\jmods;%PATH_TO_FX% --add-modules java.base,java.desktop,jdk.unsupported,javafx.graphics --output FXJRE This is how I tried to run (with errors) FXJRE\bin\java --module-path %PATH_TO_FX%;mods -m com.javafxdemo/com.javafxdemo.JavaFXDemo The error messages: