cancel
Showing results for 
Search instead for 
Did you mean: 

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

RDodd.1
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
RDodd.1
Associate II

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

View solution in original post

2 REPLIES 2
Imen.D
ST Employee

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".
Thanks
Imen
RDodd.1
Associate II

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