Skip to main content
ANauz.1
Senior
Apr 26, 2021 9:35 AM UTC
Solved

Java Virtual Machine Launcher error when importing

Hello,

I'm trying to import a project in STM32CubeIde. Each time I have the following error from the Java Virtual Machine Launcher:

"Error: Unable to access jarfile C:\Program"

I have the same error when directly trying to launch STM32CubeIDE (projet importerà.exe in CubeIDE subdirectory.

STM32CubeIde works properly!

I already uninstall/reinstall Java and CubeIde, whith no succes.

My configuration:

  • STM32CubeIde 1.6.1
  • Java 291

Any idea what is wrong here?

--edit--

same error when, after generating with CubeMX, I select "Open Project"

Thank you

Antoine

This topic has been closed for replies.
Julien D
Julien DBest answer
ST Employee
Apr 26, 2021 12:50 PM UTC

Hi Antoine,

You're facing a regression introduced in 1.6.0 when STM32CubeIDE is installed into a path containing spaces (Program Files).

Waiting for 1.7.0 I suggest you to reinstall the tool at the default location.

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.

2 replies

Julien D
Julien DBest answer
ST Employee
Apr 26, 2021 12:50 PM UTC

Hi Antoine,

You're facing a regression introduced in 1.6.0 when STM32CubeIDE is installed into a path containing spaces (Program Files).

Waiting for 1.7.0 I suggest you to reinstall the tool at the default location.

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.
ANauz.1
ANauz.1Author
Senior
Apr 26, 2021 3:07 PM UTC

Hi Julien.

Thank you. Reinstallation indeed solve the problem.

Antoine