cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX fails under Fedora32

THoff.1
Associate

After a fresh install of Fedora32 STM32CubeMX fails to start. The error msg is the same for a freshly installed 5.6.1 as for the previously installed 5.6.0 (which worked under Fedora31).

Has anybody a clue how to proceed? The error message is a follows:

[root@linux STM32CubeMX]# ./STM32CubeMX
chdir /usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/.
current dir /usr/local/STMicroelectronics/STM32Cube/STM32CubeMX
log4j user configuration file not found: /root/.stm32cubemx/log4j.properties
Configure log4j with default settings from jar:file:/usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/STM32CubeMX!/log4j/log4j.stm32cubemx.properties
2020-05-23 17:49:23,118 [INFO] MicroXplorer:570 - Detected Java Version = 1.8.0_252
Exception in thread "main" java.awt.HeadlessException
	at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
	at java.awt.Window.<init>(Window.java:536)
	at java.awt.Frame.<init>(Frame.java:420)
	at java.awt.Frame.<init>(Frame.java:385)
	at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1763)
	at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1838)
	at javax.swing.JWindow.<init>(JWindow.java:187)
	at javax.swing.JWindow.<init>(JWindow.java:139)
	at com.st.microxplorer.stobjects.STSplash.<init>(STSplash.java:23)
	at com.st.microxplorer.maingui.MicroXplorer.main(MicroXplorer.java:126)
	at com.st.microxplorer.maingui.STM32CubeMX.main(STM32CubeMX.java:30)

1 ACCEPTED SOLUTION

Accepted Solutions
THoff.1
Associate

To answer myself: Fedora32 comes only with "headless" Java. To get STM32CubeMX running one has to install the full package:

 sudo dnf install java-1.8.0-openjdk.x86_64

After this the tool starts as expected.

View solution in original post

1 REPLY 1
THoff.1
Associate

To answer myself: Fedora32 comes only with "headless" Java. To get STM32CubeMX running one has to install the full package:

 sudo dnf install java-1.8.0-openjdk.x86_64

After this the tool starts as expected.