Skip to main content
Ronald Niederhagen
Associate II
February 22, 2017
Solved

STM32CubeMX Installer Java RTE

  • February 22, 2017
  • 7 replies
  • 9386 views
Posted on February 22, 2017 at 15:30

I'm trying to install STM32CubeMX on Win10 64bit.

I know I have Java Version 8 Update 121 installed and I'm sure it's working (since I'm using it).

Now when I invoke SetupSTM32CubeMX-4.19.0.exe a window pops open after a couple of seconds saying:

STM32CubeMX Installer

The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.

And that is it.

It doesn't say which Java Version it's looking for nor does it say which one it finds (corrupted).

Can somebody help, please??

#stm32cubemx #stm32cubemx-install #stm32cubemx-java
This topic has been closed for replies.
Best answer by Imen.D
Posted on February 22, 2017 at 16:24

Hi,

It's recommended to uninstall all older versions of Java before to install the new one.

Maybe this is the cause of your problem, as the new installation of java doesn't automatically replace the old installations.

Please try this suggestion then let me know if it is OK with this suggestion.

Imen

7 replies

Imen.DAnswer
Technical Moderator
February 22, 2017
Posted on February 22, 2017 at 16:24

Hi,

It's recommended to uninstall all older versions of Java before to install the new one.

Maybe this is the cause of your problem, as the new installation of java doesn't automatically replace the old installations.

Please try this suggestion then let me know if it is OK with this suggestion.

Imen

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
Ronald Niederhagen
Associate II
February 22, 2017
Posted on February 22, 2017 at 16:58

Thanks, this did the trick.

I uninstalled Java.

Then I tried to install SetupSTM32CubeMX-4.19.0.exe and it said 'This application requires a Java Runtime Environment 1.7.0_45'. This indicated that it noticed the uninstall of Java.

Then I installed the latest Java version (Version 8 Update 121) an the STM32CubeMX installed just fine.

Robert Nagai
Visitor II
June 11, 2017
Posted on June 11, 2017 at 14:57

I had the same problem.

Try this:

cmd.exe as administrator

> java -jar \path\to\SetupSTM32CubeMX-4.xx.x.exe

james239955_st
Visitor II
August 7, 2017
Posted on August 07, 2017 at 18:48

Fantastic, this worked for me after much messing with Java versions. Thanks!

philipweiss
Associate II
October 26, 2017
Posted on October 27, 2017 at 00:45

Unfortunately your fix did NOT work for me...  I also need the versions of Java on my system that are in place. 

I verified the existence of each of the java versions in the registry:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment

Is there another registry key I should be checking?

jmjobin
Associate II
November 25, 2017
Posted on November 25, 2017 at 13:49

I have the same problem and really made a control of my java installation and cannot find any problems.

Path are OK as well as JAVA_HOME, my registry are set to only the last java release.

Using Windows 10 and java RE 1.8.0_151

Any one could help? isn't this a cubeMX problem. Spend already hours on this problem.

I am running the Udemy course on the L0 and I am stuck on this problem.

On the Udemy no-one (instructor) answer my concern about this installation.

Burak Algan
Visitor II
March 5, 2018
Posted on March 05, 2018 at 14:13

I have the same problem here. Installed Oracles VirtualBox and set it up with windows 7x86. and it works!. I guess it is a windows based problem it doesn't work properly with win10x64.

Francisco Huaracha
Visitor II
May 24, 2018
Posted on May 24, 2018 at 19:20

Hola,

Yo tambien tuve ese problema al inicio. En mi caso solamente re-instalé Java y SMT32CubeMX cargo sin problemas.

Saludos.

MYang.14
Visitor II
August 12, 2018

Please run 'regedit' and check 'JavaHome' key in ' Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\Installed Java Version(1.8.0_144 for me)\' has the valid jre path.

JavaHome REG_SZ D:\Tools\Java\jdk1.8.0_144\jre

It works for me after changing.