2020-03-27 08:26 AM
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/.
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
2020-03-28 04:13 AM
> 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
2020-03-29 12:39 PM
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