cancel
Showing results for 
Search instead for 
Did you mean: 

STM32PackCreator - JavaFX not found

Philipp Bolte
Associate II

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:

  • Amazon Corretto 11
  • OpenJDK 15
  • OpenJDK 11
  • OpenJDK 8
  • Oracle JDK 15
  • Oracle JDK 8

Installed Java SDK versions on Windows 10:

  • Oracle JDK 15.0.2
  • Oracle JDK 8

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

1 ACCEPTED SOLUTION

Accepted Solutions
Philipp Bolte
Associate II

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

View solution in original post

5 REPLIES 5

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:

  • 64-bit version is mandatory.
  • 32-bit version is not supported.
  • JRE must support JavaFX.
  • The minimum JRE version is 1.8_45 (known limitation with 1.8_251).
  • Version 11 is supported.
  • Versions 7, 9, 10, 12, and upper are not supported.

Hope this answers your question.

Khouloud.

Philipp Bolte
Associate II

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

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.

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.

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.