2018-10-10 09:42 AM
When running the program STM32CubeProgrammer, an error message appears, saying:
"CubeProgrammer_API or one of its dependencies is missing. Please try reinstalling the program of check your java architecture". However I have the lastest JAVA SE Run Time installed.
Any idea?
OS:
Windows 10 64-bit
Java:
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
STM32CubeProgrammer version:
[EDITED]1.2.0
Solved! Go to Solution.
2018-11-05 12:02 AM
Hello,
The issue is fixed with the new STM32CubeProgrammer release V1.2.1.
Kind Regards,
Imen.
2018-10-10 10:12 AM
Hello @jean-philippe Rey ,
This is known issue and will be fixed in the coming release of STM32CubeProgrammer.
Please keep an eye out for the next update!
Kind Regards,
Imen
2018-10-10 10:25 AM
OK, fine. Any idea when the new version will be released?
2018-10-10 04:47 PM
Well V1.0.0 is relatively dated, the current version is V1.2.0
https://www.st.com/en/development-tools/stm32cubeprog.html
2018-10-10 10:04 PM
My mistake... I actually installed v1.2.0, which caused the issue
2018-11-05 12:02 AM
Hello,
The issue is fixed with the new STM32CubeProgrammer release V1.2.1.
Kind Regards,
Imen.
2019-04-08 10:23 PM
Hello,
In my case when used release V2.0.0 , this issue was solved after run as administrator.
2019-09-15 10:25 AM
I bumped into the same issue with v2.1.0.
My setup:
App: STM32CubeProgrammer v2.1.0
App Install path: $HOME/STMicroelectronics/
OS: Fedora-30-workstation 64 bit (Linux 5.2.13-200.fc30.x86_64 #1 SMP Fri Sep 6 14:30:40 UTC 2019 x86_64 GNU/Linux
JAVA runtime: Sun/Oracle [ JRE - **NOT JDK** ]: JRE 1.8 (jre1.8.0_221)
It looks like the java app is unable to locate the libCubeProgrammer_API.so. This is probably happening as I installed it as a standard non-priviledged user. I assume that the installer would normally link those libs from system lib paths when run as admin.
My workaround was to update the LD_LIBRARY_PATH to include the local install directory.
~/.bashrc:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/STMicroelectronics/STM32Cube/STM32CubeProgrammer/lib/
The app came up okay after that with some null pointer exception logged to console but it seems to work. I haven't tried it with the ST-LINK yet..
Hope this helps.
2020-02-28 06:26 AM
i've tried installing 2.4.0 on a Win10 machine, both as an administrator and as a user. in both cases the end result is that the startup puts up a message box telling me that the API can't be accessed (the same message as above). i've updated all the Java on this machine and i've successfully run this program on a different machine. if this can't be fixed, can somebody at least explain why one environment works and the other doesn't?
thanks,
Jm
2020-03-05 07:09 PM
Win10 x64 v2.3.0 STM32CubeProgrammer would not work logged in as a non-administrative user, even if you run as administrator.
Updating to v2.4.0 works logged in as a non-administrative user, only if you run as administrator.
Bit dodgy.