Skip to main content
Associate
May 16, 2024
Solved

STM32CubeProgrammer rocky8 linux launch issue

  • May 16, 2024
  • 3 replies
  • 2008 views

After Install launching returns CubeProgrammer_API is missing. Please try reinstalling or check you java architecture. Ive seen some other forum posts with this issue and tried to fix the java version to no avail.

Current java version is java-1.8.0-openjdk.x86_64

Ive also tried a liberica version  bellsoft-java8-full.x86_64

console output of error, I can see the files that were failed to load in the file system so I believe it was installed properly

Native code library failed to load:
java.lang.UnsatisfiedLinkError: Unable to load library '/home/eastwor/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/../lib/libCubeProgrammer_API.so': Native library (home/eastwor/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/../lib/libCubeProgrammer_API.so) not found in resource path ([file:/home/eastwor/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32CubeProgrammerLauncher])

 System I'm running on is rocky8 Linux x86_64

Best answer by re24

Downloading an older version worked, using 2.9

Error occurred with latest version 2.16

3 replies

re24AuthorBest answer
Associate
May 16, 2024

Downloading an older version worked, using 2.9

Error occurred with latest version 2.16

Graduate
June 23, 2024

Thanks, the newest version also didn't work for me

Visitor II
February 28, 2025

Hi, I'm having the exact same issue with version 2.19.0. I don't want to go all the way back to 2.9 just to fix this bug... that seems ridiculous. Any ideas? The file does exist:

$ file /home/jack/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/../lib/libCubeProgrammer_API.so
/home/jack/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/../lib/libCubeProgrammer_API.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=36dd2b6c24e03c862e99d1e36a91a1dbc2b9a5b7, not stripped

The error seems to indicate it's checking `home/jack/...` rather than `/home/jack/...`, maybe that's the issue? Either way, I'd love if anyone knows a fix for this. Thanks in advance

Visitor II
March 1, 2025

Can confirm, STM32CubeProgrammer version 2.9 does not have this issue. 🤦

(This is not a long term solution...)

Aziz BRIGUI
Technical Moderator
March 3, 2025

Hello @JackNystrom

Could you test with v2.15 ? I'm suspecting that this is coming from the migration to QT6.  You need to check if your OS supports it.

Aziz

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Visitor II
March 3, 2025

Hi Aziz,

I have just confirmed that v2.15 works just fine. Would you like me to also try 2.16 or is that enough information? I am running NixOS 24.05 and I am 100% sure it supports QT6 in general, but I'm not sure that should even matter as stm32cube programmer ships with its own qt dynamic libraries. Thanks,

Jack