cancel
Showing results for 
Search instead for 
Did you mean: 

Can not start STM32CubeProgrammer under Debian

Cedric Boudinet
Associate III
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

1 ACCEPTED SOLUTION

Accepted Solutions
Aymen Abderrahmen
Associate
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.

View solution in original post

35 REPLIES 35
AvaTar
Lead
Posted on January 11, 2018 at 12:08

I would guess it is not properly installed.

Most installations under Unix/Linux require root priviledges, usually realized via

sudo

.
Posted on January 11, 2018 at 16:36

I reinstalled it with sudo, but I still have the same error message:

/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32CubeProgrammerLauncher

gives Error: Could not find or load main class com.st.app.Main

Posted on January 11, 2018 at 18:31

This was just an idea, I don't use this tool.

The announcement thread was flooded by a large amount of complaints and bug reports - I guess the test on Linux where flimsy as usual (to say the least...).

Aymen Abderrahmen
Associate
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.

Posted on January 12, 2018 at 09:41

It works after installing openjfx

Thanks a lot

Bests

Posted on January 12, 2018 at 12:07

As a general advice, you can always start a Linux GUI app from the terminal, which should give you indicative warnings/error messages in such cases.

Posted on January 12, 2018 at 13:50

I'm aware of that. This is actually how I got the error message.

Roman Priesol
Associate II

Hi guys, did you resolved this error? I am getting the same (oracle jdk-11 with openjfx)...

> ./STM32CubeProgrammer

JavaFX Installed

chdir /opt/STM32CubeProgrammer/bin

current dir /opt/STM32CubeProgrammer/bin

Error: Could not find or load main class com.st.app.Main

Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

Dean Perry
Associate III
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

that's your problem there - you say you have installed JavaFX - investigate _which_ JREs you have installed (and which one has access to JavaFX libraries).

On my Ubuntu box there are several and I am required to use a command called "update-java-alternatives" to select the appropriate one depending on which java based application I am using.