Skip to main content
Cedric Boudinet
Associate III
January 11, 2018
Solved

Can not start STM32CubeProgrammer under Debian

  • January 11, 2018
  • 35 replies
  • 8321 views
Posted on January 11, 2018 at 11:54

Under Linux Debian Stretch:

- if I use the shortcut nothing happens

- if I type ./STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32CubeProgrammerLauncher,

I have this error message: Error: Could not find or load main class com.st.app.Main

What should I do in order to run Cube Programmer ?

Regards

Cedric

    This topic has been closed for replies.
    Best answer by Aymen Abderrahmen
    Posted on January 12, 2018 at 02:37

    Hi Cédric,

    You are surely using OpenJDK, which is unsupported. Please install oracle Java or install Openjfx package (sudo apt-get install openjfx).

    BR,  

    Aymen.

    35 replies

    Isidre Sole
    Associate II
    June 17, 2020

    Same behavior here with a Debian 10.

    I downgraded openjfx and now when I execute the STM32CubeProgrammer from command line I get the following result:

     ./STM32CubeProgrammer

    Jun 17, 2020 3:29:10 PM javafx.fxml.FXMLLoader$ValueElement processValue

    WARNING: Loading FXML document with JavaFX API of version 8.0.121 by JavaFX runtime of version 8.0.111

    jar:file:/home/isidre/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32CubeProgrammerLauncher!/fxml/Config.fxml

    java.lang.ClassNotFoundException: com.sun.deploy.uitoolkit.impl.fx.HostServicesFactory

    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Class.java:348)

    at com.sun.javafx.application.HostServicesDelegate.lambda$getInstance$0(HostServicesDelegate.java:52)

    at java.security.AccessController.doPrivileged(Native Method)

    at com.sun.javafx.application.HostServicesDelegate.getInstance(HostServicesDelegate.java:45)

    at javafx.application.HostServices.<init>(HostServices.java:52)

    at javafx.application.Application.getHostServices(Application.java:334)

    at com.st.app.Main.start(Main.java:51)

    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(LauncherImpl.java:863)

    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$7(PlatformImpl.java:326)

    at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)

    at java.security.AccessController.doPrivileged(Native Method)

    at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)

    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)

    at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)

    at com.sun.glass.ui.gtk.GtkApplication.lambda$null$5(GtkApplication.java:139)

    at java.lang.Thread.run(Thread.java:748)

    SFrin
    Visitor II
    July 4, 2020

    You need to start the STM32 Cube Programmer with Oracle Java 8. See https://community.st.com/s/question/0D50X00009q3X4jSAE/stm32cubeprogrammer-for-linux?t=1593874663726 where the same topic is discussed.

    MMatj.1
    Associate II
    August 18, 2020

    Possibly one more quick solution found in another thread:

    https://community.st.com/s/question/0D50X0000BsRNNVSQ4/stm32cubeprogrammer-execute-fail-with-could-not-find-or-load-main-class-comstappmain

    For programmer had to install Liberica / bellsoft-jdk8u265+1-linux-amd64-full.deb