cancel
Showing results for 
Search instead for 
Did you mean: 

when launching stm32cubeprogrammer i get the error: Exec error: No such file or directory

vbuon.1
Associate III

hi,

if i start the programmer from its bin directory then it starts w/ no problems. however, if i start the programmer outside of its bin directory then i get the 'No such file or directory' error.

when the programmer launches successfully there is an extra line printed on the terminal:

jar:file:/opt/st/stm32cubeprogrammer_2.7.0/bin/STM32CubeProgrammerLauncher!/fxml/Config.fxml

when it does not start then this line is not printed and instead the error message is printed.

any suggestions would be appreciated.

thanks,

vince

This discussion is locked. Please start a new topic to ask your question.
4 REPLIES 4
Houda GHABRI
ST Employee

Hi vbuon.1,

can you please give the command line used to launch CubeProgrammer?

Houda

hi,

thank you for your reply.

i type in the following:

STM32CubeProgrammerLauncher

thanks,

vince

Houda GHABRI
ST Employee

Hi vbuon.1,

You need to execute the script STM32CubeProgrammer located in the same directory of the launcher .

Please try and tell me if it is OK.

Houda

vbuon.1
Associate III

hi,

thanks for your suggestion.

the script failed bc the last line didn't have $DIR in front of 'jre/bin/java'. or, it didn't have 'cd $DIR' before the last line.

after i prepended '$DIR' to the last line i was able to launch the programmer

btw, what is this line that gets printed to the terminal by the programmer:

.jar:file:/opt/st/stm32cubeprogrammer_2.7.0/bin/STM32CubeProgrammerLauncher!/fxml/Config.fxml

thanks,

vince