Skip to main content
vbuon.1
Associate III
July 14, 2021
Question

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

  • July 14, 2021
  • 3 replies
  • 1113 views

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 topic has been closed for replies.

3 replies

Houda GHABRI
ST Employee
July 15, 2021

Hi vbuon.1,

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

Houda

vbuon.1
vbuon.1Author
Associate III
July 15, 2021

hi,

thank you for your reply.

i type in the following:

STM32CubeProgrammerLauncher

thanks,

vince

Houda GHABRI
ST Employee
July 16, 2021

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
vbuon.1Author
Associate III
July 16, 2021

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