‎2021-01-20 11:53 PM
Hello,
I am not able to launch STM32PackCreator 3.1.0. The program shows "JavaFX not found" on start. I have already tried multiple versions of JDK on Manjaro Linux and Windows 10 without any success.
Tested Java JDK versions on Manjaro Linux:
Installed Java SDK versions on Windows 10:
Console output Manjaro Linux:
# java -jar STM32PackCreator.exe
0 [main] DEBUG com.st.configurator.Main - log4j user configuration file not found: /home/pbolte/.configurator/log4j.properties
1 [main] DEBUG com.st.configurator.Main - Configure log4j with default settings from jar:file:/opt/stm32cubemx/utilities/STM32PackCreator/STM32PackCreator.exe!/log4j/log4j.configurator.properties
2021-01-21 08:40:29,621 [INFO] Main:137 - Starting Pack Creator
2021-01-21 08:40:29,622 [INFO] Main:128 - Detected JVM Path = /usr/lib/jvm/java-11-amazon-corretto/bin/
2021-01-21 08:40:29,622 [INFO] Main:60 - Detected Java Version = 11.0.9.1
2021-01-21 08:40:29,624 [ERROR] Main:115 - Error while searching JavaFx: com.sun.javafx.runtime.VersionInfo
2021-01-21 08:40:29,624 [ERROR] Main:144 - JavaFX not found or invalid version.
Console output Windows 10:
# java -jar STM32PackCreator.exe
0 [main] DEBUG com.st.configurator.Main - log4j user configuration file not found: C:\Users\pbolte/.configurator/log4j.properties
1 [main] DEBUG com.st.configurator.Main - Configure log4j with default settings from jar:file:/C:/Program%20Files%20(x86)/STMicroelectronics/STM32Cube/STM32CubeMX/utilities/STM32PackCreator/STM32PackCreator.jar!/log4j/log4j.configurator.properties
2021-01-21 08:41:44,402 [INFO] Main:137 - Starting Pack Creator
2021-01-21 08:41:44,405 [INFO] Main:128 - Detected JVM Path = C:\Program Files\Java\jdk-15.0.2\bin\
2021-01-21 08:41:44,406 [INFO] Main:60 - Detected Java Version = 15.0.2
2021-01-21 08:41:44,407 [ERROR] Main:115 - Error while searching JavaFx: com.sun.javafx.runtime.VersionInfo
2021-01-21 08:41:44,408 [ERROR] Main:144 - JavaFX not found or invalid version.
Do you have any suggetions what to try next?
Regards,
Philipp Bolte
Solved! Go to Solution.
‎2021-01-21 12:33 AM
Hello Khouloud,
I have tried the recommended Java Version Amazon Corretto 11 without success on Manjaro Linux. It seems that JavaFX is not bundled with Corretto 11 anymore.
The same problem occurs with Oracle JDK 15 on Windows.
I could solve the issue on both, Manjaro Linux and Windows 10, by installing Liberica Full JDK 15.0.2 from Bellsoft. This seems the only recent version of JRE / JDK with embedded JavaFX.
Regards,
Philipp Bolte
‎2021-01-21 12:06 AM
Hello Philipp Bolte,
Welcome to our Community :)
If you refer to STM32 Pack Creator tool User Manual, you'll find a System requirements section which precise the supported Java version.
In fact, STM32PackCreator requires a Java Runtime Environment (JRE) to execute.
The JRE version constraints are:
Hope this answers your question.
Khouloud.
‎2021-01-21 12:33 AM
Hello Khouloud,
I have tried the recommended Java Version Amazon Corretto 11 without success on Manjaro Linux. It seems that JavaFX is not bundled with Corretto 11 anymore.
The same problem occurs with Oracle JDK 15 on Windows.
I could solve the issue on both, Manjaro Linux and Windows 10, by installing Liberica Full JDK 15.0.2 from Bellsoft. This seems the only recent version of JRE / JDK with embedded JavaFX.
Regards,
Philipp Bolte
‎2021-01-21 12:52 AM
Hi Philipp Bolte,
If I well understand your answer, your issue is resolved by installing Liberica Full JDK 15.0.2 ?
Please correct me if I misunderstood .
Khouloud.
‎2021-01-21 01:00 AM
Yes, after installing Liberica Full JDK 15.0.2 it is working. This solves the issue under Manjaro Linux and Windows 10.
The JavaFX component is only shipped with the Full version. The installation of the Standard version does not include JavaFX.
‎2021-01-21 01:10 AM
Good to know :) Thanks for your feedback.
But normally the recommended Amazon Corretto JRE contains JavaFX, so it's a bit odd that this issue occurs while using it.