cancel
Showing results for 
Search instead for 
Did you mean: 

Problem installing on Mac Best Answer

MBudz.1
Associate II

0693W000003PPG6QAO.pngDownloaded and installed the latest Java development kit. Tried installing SetupSTM32CubeMX-6.0.1 via: sudo java -jar SetupSTM32CubeMX-6.0.1.exe but get this error message: Error: Unable to access jarfile SetupSTM32CubeMX-6.0.1.exe .

Any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions
Aymen CHAKROUN
ST Employee

Hi @MBudz.1​ ,

Good news !

Can you make the solution as Best Answer to help others community members if facing the same issue?

Regards,

Aymen.

View solution in original post

12 REPLIES 12
Aymen CHAKROUN
ST Employee

Hi @MBudz.1​ ,

Can you please give us:

  • The exact version of your JDK and provider ? [Oracle, OpenJDK, AdoptOpenJDK...]
  • Your macOS version

Are you facing issue when you double click the SetupSTM32CubeMX-6.0.1.app ?

Regards,

Aymen.

0693W000003QYuvQAG.pngHello,

Thanks for replying. I'm running Mac OS 10.14.6 and downloaded the latest Java:

Bit doesn't recognise the .exe file and says the the data is corrupted:0693W000003QYz7QAG.png

and nothing happens when I double click the app.

Aymen CHAKROUN
ST Employee

Hi @MBudz.1​ ,

I tried with the same macOS verison 10.14.6 (Mojave), but I can't reproduce your issue.

0693W000003Qb7IQAS.png

Can you try installing Oracle JDK and not JRE ?

Because STM32CubeMX works fine only with JDK and not JRE in macOS environment.

Regards,

Aymen.

MBudz.1
Associate II

That's interesting I downloaded and installed this:0693W000003QbPIQA0.png

Once again I double click on the app:

0693W000003QbY4QAK.png

and nothing happens

This is my operating system etc.

0693W000003QbYTQA0.png

Do you have any other solutions as I can't get it to work in any way?

Aymen CHAKROUN
ST Employee

Hi @MBudz.1​ ,

Can you apply this command [to bypass Gatekeeper]:

Extract from STM32CubeMX User Manual:

0693W000003Qd5JQAS.jpg

Just one clarification, you need to double click the .app file and not .exe file to start STM32CubeMX

The .exe file is only used with command line 'java -jar'

Regards,

Aymen.

MBudz.1
Associate II

I did double click the ,app files and it won't open when I double click it.

I tried using this and it gave me an error message:

0693W000003QdpMQAS.png

Then I tried this:

0693W000003Qdp2QAC.png

Still can't open it.

Any other ideas?

Aymen CHAKROUN
ST Employee

Hi @MBudz.1​ ,

My Screenshots was for any MX VERSION, you need to change the VERSION by the correct one.

So in your case:

sudo xattr -cr ~/SetupSTM32CubeMX-6.0.1

Also, try doing the java -jar without sudo:

java -jar SetupSTM32CubeMX-6.0.0.exe

Regards,

Aymen.

MBudz.1
Associate II

Got it to work. Thanks for all of your help.

Cheers