2016-10-11 03:01 AM
Hi all,
I just downloaded the STM32CubeMX software from st.com and tried to run it on my Mac, but nothing showed up and I got an error message saying ''missing java runtime environment''. Then I installed the latest java, 1.8, but it still doesn't work. I tried some debug methods, but non worked. Please help. Any suggestion would be appreciated.Thank you #bug-stm32cubemx2016-10-11 03:08 AM
Hi hu.richard,
Thank you for your feedback. The issue has been reported internally.-Syrine-2016-10-11 04:16 AM
Hello,
Can you please confirm you installed the JDK version (is mandatory for MAC) and not only JRE version .
Thanks for your feedback
2016-10-11 08:11 AM
I reported this way back in July to support with item TECH021111 but no one ever responded. I finally got Cube to run with the following commands typed into Terminal:
export PATH='/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin:/usr/bin:/bin'
open /Applications/STMicroelectronics/STM32CubeMX.app
2016-10-12 07:45 PM
Hi,
I don't know what is the JDK thing.Could you please provide a link to it?thank you!2016-10-13 11:35 PM
Hi downey,
I tried to use the terminal command that you used to launch STM32CubeMX but I doesn't work. It just got an error and exited.Any ideas?P.S. Can the mbed online compiler directly download a program onto a Nucleo dev board via USB? If it can then I don't really need STM32CubeMX anymore.2024-07-31 12:30 PM - edited 2024-07-31 12:30 PM
I found this post when I encountered this problem (almost 8 years later). In case anyone else stumbles onto this post, here is how I solved it: (I am on Linux Mint 21.3, based on Ubunutu 22.04.4 LTS).
In the Readme.html in the .zip file that I downloaded from ST for STM32CubeMX it mentions that:
STM32CubeMX embeds the Java Runtime Environment (JRE™) required for its execution and no longer uses the one installed on the user machine.
Note: The bundled JRE™ is Adoptium Temurin 17.0.6 and JavaFX-17.0.2. (https://adoptium.net/).
So I went to https://adoptium.net and downloaded their JDK archive. I then created a folder
/home/sean/STM32CubeMX/jre
(you likely need to adjust the root of this path for your setup), and copied the contents of the unzipped adoptium JDK archive to this folder.
This is possibly overkill, as STM32CubeMX seemingly only needs the `jre/bin/java` binary, but it works.