2018-01-11 2:54 AM
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
Solved! Go to Solution.
2018-01-11 5:37 PM
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.
2018-01-11 3:08 AM
I would guess it is not properly installed.
Most installations under Unix/Linux require root priviledges, usually realized via
sudo
.2018-01-11 8:36 AM
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
2018-01-11 10:31 AM
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...).
2018-01-11 5:37 PM
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.
2018-01-12 1:41 AM
It works after installing openjfx
Thanks a lot
Bests
2018-01-12 4:07 AM
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.
2018-01-12 5:50 AM
I'm aware of that. This is actually how I got the error message.
2018-09-25 12:53 PM
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
2018-09-25 9:34 PM
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.