javafx-11

JDK11/JavaFX: How do I make a fat jar without build/depdency management?

限于喜欢 提交于 2019-11-29 11:13:16
I think it goes without saying that I should be able to use Oracle's own JDK with JavaFX (from gluonhq) to build a distributable jar file that users can just USE. After an exhaustive search, much reading (24 hours or more over the last few months)and finally this Google search query: how to make a fat jar -maven -gradle -scala -eclipse -ant -docker -hadoop -netbeans -jerkar -phy -mozni -yogurt -pizza - throwing -python -bacon I'm absolutely at the end of the road. Why on earth is this so much work? How can I build a JavaFX application and give it to people that want to actually use it without

How do I use JavaFX 11 in Eclipse?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 06:33:32
I have some trouble with JavaFX. I wanted to start creating apps, desktop or mobile, at least something. So I found out I could use the JavaFX library for it. But as far as I understood, it was excluded from JDK 9. I'm actually using OpenJDK 11 on Ubuntu 18 (though Eclipse writes I have the JavaSE 10 environment, that is where I'm also a bit confused) and I installed OpenJFX using sudo apt install openjfx and I can't make Eclipse work with JavaFX. I'm not sure if there's any sense not to use JDK 8 with the included JavaFX, but anyway, how can I use JavaFX in such conditions in Eclipse? There

Running javafx sample on JDK 11 with OpenJFX 11 JMODS on Module Path

不羁岁月 提交于 2019-11-29 01:58:25
I have downloaded the JavaFX Jmod files from OpenJFX project and placed them in the directory G:\openjfx\javafx-jmods-11 . I am using OpenJDK 11 which has no JavaFX jmod in JAVA_HOME/jmods i.e it doesn't come with JavaFX distribution. Module info file: module gui{ requires javafx.graphics; requires javafx.controls; exports com.test; } I compile with following: javac -p G:\openjfx\javafx-jmods-11 -d mods --module-source-path src src\gui\com\test\*.java src\gui\module-info.java Compilation succeeds. But I am unable to run the compiled code using the below command: java -p G:\openjfx\javafx-jmods

Does JavaFX after removing it from jdk cross-platform?

那年仲夏 提交于 2019-11-29 00:11:11
Does JavaFX 11 cross-platform? As i saw in openjfx.org that i have to download releases for each platform. And if so, can i in any way use it in a cross-platform form? And should i use each javafx release for each java release? Don't tell me to use maven or something like that. I want to program a cross-platform software. And not a multi-release software each release for each OS. I thout to load the modules after checking the OS but can i do that? Any way there is a lot of libraries that are cross-platform even if it have native code so why OpenJFX doesn't do that? JavaFX 11 is not part of the

Java FX Modular Application, Module not found (Java 11, Intellij)

天涯浪子 提交于 2019-11-28 14:08:39
Hello I have a problem with my modular Java FX Application. First of all I created a JavaFX Project with the Intellij Wizard. I added the Java FX lib: And the JavaFX modules get recognized. My module-info.java: I also added the VM options: But I always get this errormessage: "Error occured during initialization of boot layer java.lang.module.FindException: Module HelloFX not found" Thank you. When you get the error: Error occurred during initialization of boot layer java.lang.module.FindException: Module HelloFX not found it means that the path to the module in question in --module-path is

I can't debug an application using netbeans 11 with JavaFX 12

僤鯓⒐⒋嵵緔 提交于 2019-11-28 12:43:49
I've downloaded netbeans 11 with support for java 12 So I followed up the steps from the Gluon webpage running JavaFX and Netbeans Non modular with maven > https://openjfx.io/openjfx-docs/#next-steps I have configured as showed in the instructions the action to run this app. Run Project clean javafx:run But there is nothing specified to debug the project. Is there a way to debug this javaFX project? <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0

JavaFX-11 with VSCode

﹥>﹥吖頭↗ 提交于 2019-11-28 01:21:27
I must be missing something obvious here... I am experimenting with VSCode (coming from Eclipse), but I am unable to get VSCode to see the JavaFX11 libraries. In the import statements, all references to JavaFX components are marked: [Java] The import javafx cannot be resolved In Eclipse, this is handled with a "User Library", which generates an entry in .classpath <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/JavaFX11"> <attributes> <attribute name="module" value="true"/> </attributes> </classpathentry> While VSCode seemingly understands the rest of the .classpath from Eclipse,

How do I use JavaFX 11 in Eclipse?

别等时光非礼了梦想. 提交于 2019-11-27 23:50:16
问题 I have some trouble with JavaFX. I wanted to start creating apps, desktop or mobile, at least something. So I found out I could use the JavaFX library for it. But as far as I understood, it was excluded from JDK 9. I'm actually using OpenJDK 11 on Ubuntu 18 (though Eclipse writes I have the JavaSE 10 environment, that is where I'm also a bit confused) and I installed OpenJFX using sudo apt install openjfx and I can't make Eclipse work with JavaFX. I'm not sure if there's any sense not to use

Package a non-modular JavaFX application

大兔子大兔子 提交于 2019-11-27 21:34:45
I have a Java 8 application, that uses JavaFX and where the main class extends javafx.application.Application . Currently, I deliver it as a fat jar and it runs fine on Oracle Java 8. Now I want it to be able to run on OpenJDK 11. To add JavaFX, I already added the artifacts from org.openjfx to the classpath and am including them in the fat jar. If I start my jar from the command line, I get Error: JavaFX runtime components are missing, and are required to run this application I found two possible ways around this problem: The dirty one: Write a special launcher that does not extend

Build and deploy javafx application using java11

自作多情 提交于 2019-11-27 15:31:31
I followed the steps in https://blog.jetbrains.com/idea/2013/03/packaging-javafx-2-applications-in-intellij-idea-121/ but when I try to build artifacts the as in the last step I get this error Error:Java FX Packager: Can't build artifact - fx:deploy is not available in this JDK I know JavaFX has been removed from java11 my question is what should I do to build a .jar or .exe here is a hello world app for quick testing. Unfortunately, you won't be able to build your jar using JFX11 this way, as apparently the packager was removed from the JFX SDK. There is hope it will be implemented in a