Skip to main content
Associate
October 15, 2025
Solved

"unknown protocol c" Java Exception when generating project in MC workbench

  • October 15, 2025
  • 5 replies
  • 611 views

Hi,

I'm in charge of the motor driver for a new project we've started working on. I freshly installed MotorControl Workbench, CubeMX and the IDE. After setting all parameters in Workbench and hitting "Generate the project" button I get a Java runtime Exception "unkown protocol c". I've hit a wall trying to fix this as there's almost no info about similar issues on the web.
I tried uninstalling and installing different versions, too.

Using windows 11 pro, 24H2.

 

Any suggestions what might go wrong here? I've tried installing the oracle JDK and using that instead of the openJDK runtime but I couldn't get Workbench to use it (this was the only info I could find).
Thanks for any help on this!

Best answer by nb_coresight

So I noticed that some other tools have issues too. Could it be the é ("special character") in the windows username (and subsequently in the home-directory path name) that causes issues with scripts and such? 
Trying with IT to remove it but this will take some time. Any suggestions welcome

5 replies

GMA
Technical Moderator
October 16, 2025

Hello @nb_coresight,

If the code generation proceeds to the main.c file, you can use the generated project.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA
Associate
October 16, 2025

Thank you,

Unfortunately, it doesn't even reach that point. It fails right away, pretty much.

GMA
Technical Moderator
October 16, 2025

Hello @nb_coresight,

You can try using MCSDK6.4.1 available here.

Refer to the STM32Cube environment chapter of the MCSDK6.3.0 release note (accessible through Workbench tool > About > Documentations) for the STM32CubeMX version (v6.11.0 is expected) and firmware packages to be used.

 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA
Associate
October 30, 2025

Anyone else with any suggestions?
Still stuck on this. It HAS to be something my machine, but I have no idea what could cause this.

ST Employee
November 3, 2025

Hi @nb_coresight ,

 

this issue has been identified and should be fixed within next release of STM32CubeMx 6.16.0 which will be available in the coming weeks.

Nevertheless, can you please check with the version 6.14.0 and let us know your status.

 

Thanks in advance

Regards

Associate
November 4, 2025

Thank you.
I will try as soon as I have the time to.

Associate
November 6, 2025

Nope, still the same issue 

 

nb_coresight_0-1762439646030.png

 

nb_coresightAuthorBest answer
Associate
November 13, 2025

So I noticed that some other tools have issues too. Could it be the é ("special character") in the windows username (and subsequently in the home-directory path name) that causes issues with scripts and such? 
Trying with IT to remove it but this will take some time. Any suggestions welcome

GMA
Technical Moderator
November 27, 2025

Hello @nb_coresight,

The STM32CubeMX 6.16 tool is available here.
As you mentioned, try selecting a path without special characters.

GMA_0-1764259928229.png

 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA
Associate
February 16, 2026

Just to follow up here: we eventually changed the username removing "special" characters (é in my case) in the home-directory path, this did the trick.

GMA
Technical Moderator
February 17, 2026

Hello @nb_coresight,

Thank you for your feedback.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA