Skip to main content
JGale
Associate
November 10, 2018
Question

STM32CubeProgrammer not working, starting up and then closing immediately

  • November 10, 2018
  • 9 replies
  • 8274 views

I've been using the programmer for a couple of week now and everything seemed to work fine.

When I powered up my pc and tried to run the program I got a starting screen that quickly disappeared. This happened even after I reinstalled the program, anyone has had this problem and knows how to solve it?

9 replies

JGale
JGaleAuthor
Associate
November 10, 2018

Oops.. Just saw a post about JDK. Deinstalled it, and now it works

HMcKi
Associate III
December 18, 2019
BitBanger46
Associate III
January 15, 2020

I am experiencing the same problem using Windows 7. I updated my Java to version 1.8.241 and then installed the STM32CubeProgrammer software. Per previous posts, I examined the .installtioninformation file and found that JAVA_HOME points to the Program Files folder containing the newly installed version of Java. However, the problem persists. I did notice that one of the posts referred to the Java SDK which is not installed. This is very frustrating so any help would be appreciated.

HMcKi
Associate III
January 15, 2020

Did you see the other post in my comment above? Do you have any Java 9's installed in your 'add or remove programs'. If so try uninstall.

Also Java may be 32 or 64 bit, check you have the right one installed, or better yet install both (assuming your computer is 64 bit).

BitBanger46
Associate III
January 15, 2020

I looked at of the other posts before posting the question. I verified that there are NO Java 9's installed in my system. In fact, I searched the entire C: drive to locate any java.exe files to be certain that the STM32CubeProgrammer software was finding the correct version of Java. Unfortunately, the installer for version 2.3 of the STM32CubeProgrammer does not provide any information about the specific version of Java needed. I did invoke the version command of the Java executable and it displayed the following:

java version "1.8.0_241"

Java(TM) SE Runtime Environment (build 1.8.0_241-b07)

Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)

I do not have any 32-bit versions of Java anywhere in my system. It is not clear to me that the installer would be looking for the 32-bit version of Java if it already detects the latest 64-bit version.

Given that the JAVA_HOME is pointing to the proper version of Java (1.8.0_241) i.e. JAVA_HOME = C:\Program Files (x86)\Java, I am at a loss to understand what is happening. To further complicate things, I cannot find any information published by STMicroelectronics that provides any clue as to what I should be looking for!!

BitBanger46
Associate III
January 16, 2020

As a sanity check, I tried installing the STM32CubeProgrammer software on my Windows 10 laptop. (The laptap was virgin i.e. no previous versions of Java AND it has no STM32CubeIDE loaded either which means no STLDR files.) To my surprise ... it works!! This suggests that the problem may be related to the fact that the Windows 7 desktop may be contaminated as a result of having more than 100 applications installed. That said, it still not make sense that the programmer software won't execute properly on the desktop.

HMcKi
Associate III
January 16, 2020
I uninstalled all my Javas and re-installed 32 bit Version 8 Update 241 and got some java error after opening cubeprogrammer.
Then installed 64 bit Version 8 Update 241 and it started working again.
Try going to https://java.com/en/download/manual.jsp then downloading ‘windows offline (64 bit)’
Cheers,
Ham.
waclawek.jan
Super User
January 16, 2020

4 months ago, we've read this:

STM32CubeProgrammer team is working to embed the JRE in its install package as STM32CubeIDE does.

JW

Mickey Atias
Associate
May 12, 2020

Hi,

If someone still have issues with running STM32Programmer, seeing splash screen and then nothing more:

After going through ALL the answers I could find on the internet, I finally was able to fix:

  1. make sure the JAVA (JRE) is from ORACLE!
  2. JAVA_HOME points to the JRE directory
  3. add JRE to PATH

Mickey

JMo.1
Visitor II
June 1, 2020

Hi,

Does it mean that STM32CubeProgrammer is not support OpenJDK/JRE in Windows platform?

I am trying to use OpenJDK/JRE in Win10 for STM32CubeProgrammer installation and with no luck.

Sid Price
Associate III
June 18, 2020

I am also having this problem, yes, I have Java 9 installed I NEED to have it installed. Why is this still an issue, I thought the ST team was fixing it some time ago.

Sid

Anguel
Associate III
November 12, 2020

Indeed this fine piece of software does work only with Oracle's Java which is not free to update! I wasted many hours trying with Amazon Corretto and AdaptOpenJDK - it starts and immediately disappears after the splash screen. I don't know why it uses Java at all as it also seems to use Qt libraries!

BTW, this is the second ST software I install after STM32CubeIDE, which also still has well known bugs and newer MCU firmware downloads fail - they have not been fixed since years. Very frustrating!

Visitor II
December 14, 2023

Issue is fixed by adding -Djna.nosys=true in the newline in C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32CubeProgrammer.l4j.ini

geokscott
Associate
December 24, 2023


This worked for me.