cancel
Showing results for 
Search instead for 
Did you mean: 

Can we use STM32CubeMX without Oracle JRE?

andyn_ff
Associate II

Hi,

Since Oracle changed their licensing for their JDK/JRE last year, we have been using OpenJDK so that we do not need to pay for the Oracle release.

The only time I have a problem with this on my computer is running STM32CubeMX and STM32CubeProgrammer. When I start them up, I get the error message below, and then am sent to https://www.java.com/en/download/.0693W000000Uu1yQAC.png

Does STM32CubeMX really require the use of Oracle JRE? I have tried launching it from the command line using the below:

java -jar "C:\Program Files (x86)\STMicroelectronics\STM32Cube\STM32CubeMX\STM32CubeMX.exe"

This works fine, as the `java` command launches OpenJDK. So my workaround at the moment is to manually change the shortcuts to STM32CubeMX and STM32CubeProgrammer to launch via this command, but it is awkward. It would be much better if STM32Cube applications could simply use whatever Java implementation is present on the user's machine.

Thanks,

Andy

2 REPLIES 2

> It would be much better if STM32Cube applications could simply use whatever Java implementation is present on the user's machine.

No. It would be much better if those applications would embed whatever JVM they need.

That's been promised some time ago.

https://community.st.com/s/question/0D70X00000763nW/oracle-jre-license-impact

@Jerome B​ , any news regarding this?

JW

Jerome B
ST Employee

Hello,

The bundling of the java VM inside installer of STM32CubeMX and STM32CubeProgrammer is in the 2020 roadmap of those tools.

STM32CubeProgrammer probably coming a bit earlier than STM32CubeMX.

Regards

Jérôme B