Skip to main content
andyn_ff
Associate
March 27, 2020
Question

Can we use STM32CubeMX without Oracle JRE?

  • March 27, 2020
  • 2 replies
  • 2051 views

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

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
March 28, 2020

> 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
March 29, 2020

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