cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer 2.14 does not start on Ubuntu 22.04

daCodeMonkey
Associate

Hi,

I just downloaded and installed the STM32CubeProgrammer version 2.14 for linux.

The installation went without any issues. However, when I execute STM32CubeProgrammer an exception is immediately raised (see below). I tried to run it as root, but this did not help (same error).

I am connected via a terminal and an (working) X connection. The installer is used via the same terminal and connection.

I do not have any other java installation (other than the java which is installed by the STM32CubeProgrammer installer).

I have googled for this error, but I cannot find any solution for this.

Any help is much appreciated.

 

:/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin$ ./STM32CubeProgrammer
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.UnsupportedOperationException: Internal Error
at com.sun.glass.ui.gtk.GtkApplication.lambda$new$5(GtkApplication.java:158)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.<init>(GtkApplication.java:140)
at com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(GtkPlatformFactory.java:41)
at com.sun.glass.ui.Application.run(Application.java:146)
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:257)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:211)
at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:581)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:330)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:321)
... 5 more

 

1 REPLY 1
Sara BEN HADJ YAHYA
ST Employee

Hello @daCodeMonkey ,

Thanks for your feedback,

Could you please try launching the tool with the following command:

java -jar STM32CubeProgrammer

Sara.