Skip to main content
Associate
October 26, 2023
Solved

STM32CubeProgrammer won't start up

  • October 26, 2023
  • 5 replies
  • 3882 views

Hi, I've just installed v2.14.0 for the first time, but it will not start up. All I get is the blue STM screen for a few second, then it disappears. I tried the command prompt start up detailed in This Post but I end up with an error message, shown below. I need help on how to proceed as I do not have JRE installed on my PC, but have had it in the past. I've tried re-installing STM32... but that didn't help

 

Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:382)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:321)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:823)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$1(LauncherImpl.java:181)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Error:

There is an incompatible JNA native library installed on this system
Expected: 5.2.2
Found: 5.1.0
c:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Adobe\AGL;C:\Program Files (x86)\Brackets\command;C:\Program Files (x86)\nodejs\;C:\Ruby22\bin;C:\Users\stuar\AppData\Local\Programs\Python\Python36-32\Scripts;C:\Users\stuar\AppData\Local\Programs\Python\Python36-32;C:\Program Files\FileBot\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Ruby22\bin;C:\Users\stuar\AppData\Local\Microsoft\WindowsApps;C:\Users\stuar\AppData\Roaming\npm;C:\Users\stuar\AppData\Local\atom\bin;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;;..
To resolve this issue you may do one of the following:
- remove or uninstall the offending library
- set the system property jna.nosys=true
- set jna.boot.library.path to include the path to the version of the
jnidispatch library included with the JNA jar file you are using

Best answer by sastek

Never mind, I found the problem. Another app in PATH was causing the error.

5 replies

sastekAuthorBest answer
Associate
October 31, 2023

Never mind, I found the problem. Another app in PATH was causing the error.

Visitor II
December 13, 2023

What was the issue? and how did you solve it?

Tesla DeLorean
Guru
December 13, 2023

Guessing by changing the PATH ordering?

Start by showing the error YOU GOT rather than me-tooing a prior post

The error the OP reports seems to suggest it's pulling some old SUN JAVA runtime, perhaps not Oracles, or the one provided by ST.

What can also cause STM32 Cube Programmer to hang up if you have used a .BIN / .HEX on some un-mapped network drive, or it otherwise can't find this time around.

There's a configuration file within the User's AppData directory for the tool.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Visitor II
December 13, 2023

Issue is STM32Cube programmer does not start

Visitor II
December 14, 2023

Issue is fixed by adding -Djna.nosys=true in the new line in C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32CubeProgrammer.l4j.ini

Associate II
July 10, 2024

I've gotten this issue recently after upgrading from 2.16 to 2.17 by using the built-in updater.

After trying many things, my only solution is to delete the STM32CubeProgrammer folder under C:\Users\<username>\STMicroelectronics\STM32CubeProgrammer

DerekR
Senior
April 23, 2026

Thank you!!!! This worked.

I manually uninstalled 2.8.0 and manually installed 2.22.0 and encountered this issue. It would just hang on the blue boot splash screen and I had to manually kill the process "Liberica Platform binary" to get it to go away. It seems like the newer versions of CubeProgrammer use a different Java SDK.