filmov
tv
JavaFX Tutorial 58 - Executable JavaFX 8 Application JAR File

Показать описание
This tutorial shows you how to create an executable JavaFX application jar file using NetBeans 12, which contains application code and resources and can be launched by double-clicking the file.
You should download the following:
Setting Environment Variables
JAVA_HOME="C:\Program Files\Java\jdk1.8.0_261"
JAVA_HOME tells your OS where there Java installation directory lives.
PATH="%JAVA_HOME%\bin"
PATH specifies where the Java executable directory resides.
Javac -version
The output should display a message indicating the Java 8 version of the language and runtime.
The Installed directories are as following:
C:\Program Files\Java\jdk1.8.0_261
C:\Program Files\NetBeans-12.0
Q: I got an error of
JavaFX deployment library not found in active JDK.
Please check that the JDK is correctly installed and its version is at least 7u4 on Mac or 7u6 on other systems.
BUILD FAILED (total time: 3 seconds)
A: For Java/JavaFX deployment, we may still need to use Java 8. JavaFX deployment with NetBeans 12 comes with Apache Ant version 1.10.4 that does not support Java 11 or higher. It supports only up to Java 8. As far as I know, any IDE uses an Ant library, it can't support Java 11 or higher for deploying Java/JavaFX 11 for now.
#JavaFX #JavaFXJar #JavaFXdeployment
You should download the following:
Setting Environment Variables
JAVA_HOME="C:\Program Files\Java\jdk1.8.0_261"
JAVA_HOME tells your OS where there Java installation directory lives.
PATH="%JAVA_HOME%\bin"
PATH specifies where the Java executable directory resides.
Javac -version
The output should display a message indicating the Java 8 version of the language and runtime.
The Installed directories are as following:
C:\Program Files\Java\jdk1.8.0_261
C:\Program Files\NetBeans-12.0
Q: I got an error of
JavaFX deployment library not found in active JDK.
Please check that the JDK is correctly installed and its version is at least 7u4 on Mac or 7u6 on other systems.
BUILD FAILED (total time: 3 seconds)
A: For Java/JavaFX deployment, we may still need to use Java 8. JavaFX deployment with NetBeans 12 comes with Apache Ant version 1.10.4 that does not support Java 11 or higher. It supports only up to Java 8. As far as I know, any IDE uses an Ant library, it can't support Java 11 or higher for deploying Java/JavaFX 11 for now.
#JavaFX #JavaFXJar #JavaFXdeployment
Комментарии