Skip to main content
RDodd.1
Associate
September 21, 2022
Solved

Please install Java JDK 11.0.10 or a more recent version on Mac M2

  • September 21, 2022
  • 2 replies
  • 1217 views

Hi ,

I am trying to install CubeMX on MAC M1 . I have been getting this error

Exe path is: /Applications/SetupSTM32CubeMX-6.6.1.app/Contents/MacOs
Search java from relative path ----
Checking java in /Applications/SetupSTM32CubeMX-6.6.1.app/Contents/MacOs/./jre/bin/java
Checking java in /Applications/SetupSTM32CubeMX-6.6.1.app/Contents/MacOs/../jre/bin/java
Checking java in /Applications/SetupSTM32CubeMX-6.6.1.app/Contents/MacOs/../../jre/bin/java
Checking java in /Applications/SetupSTM32CubeMX-6.6.1.app/Contents/MacOs/../../../jre/bin/java
Checking java in /Applications/SetupSTM32CubeMX-6.6.1.app/Contents/MacOs/./jre/Contents/Home/bin/java
Checking java in /Applications/SetupSTM32CubeMX-6.6.1.app/Contents/MacOs/../jre/Contents/Home/bin/java
Checking java in /Applications/SetupSTM32CubeMX-6.6.1.app/Contents/MacOs/../../jre/Contents/Home/bin/java
Checking java in /Applications/SetupSTM32CubeMX-6.6.1.app/Contents/MacOs/../../../jre/Contents/Home/bin/java
Please install Java JDK 11.0.10 or a more recent version

My java echo is printing out this

echo $JAVA_HOME 
/Library/Java/JavaVirtualMachines/jdk-19.jdk/Contents/Home

Can anyone pls help me with this

Thanks

This topic has been closed for replies.
Best answer by RDodd.1

I got it resolved. It was just the java package which was missing . Thanks Imen

2 replies

Technical Moderator
September 27, 2022

Hello @RDodd.1​ ,

Are you installing CubeMX with admin rights?

Make sure you have administrator rights and I advise you to follow the steps described in the UM1781, in the "3 Installing and running STM32CubeMX" section.

Please keep me informed about your progress on this issue.

 When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Imen

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
RDodd.1
RDodd.1AuthorAnswer
Associate
October 6, 2022

I got it resolved. It was just the java package which was missing . Thanks Imen