2018-02-22 12:09 PM
I have just installed the new STM32CubeProgrammer for Linux but it won't run. I see the error 'Error: Could not find or load main class com.st.app.Main'. Anyone else come across this problem that has a fix?
I went with all the defaults except I changed the install path from '/home/david/STMicroelectronics/STM32Cube/STM32CubeProgrammer' to '/home/david/bin/STMicroelectronics/STM32Cube/STM32CubeProgrammer'. I did not notice an option for a shared install, or else I would have chosen that.
Solved! Go to Solution.
2018-02-22 01:05 PM
Thanks Bogdan, found the answer there. For me it was because I am using OpenJDK and the fix was simply:
sudo apt-get install openjfx
2018-02-22 12:53 PM
It seems that this thread deals with the same issue:
2018-02-22 01:05 PM
Thanks Bogdan, found the answer there. For me it was because I am using OpenJDK and the fix was simply:
sudo apt-get install openjfx
2018-02-22 02:16 PM
Frankly I have not used the STM32CubeProgrammer yet. Waiting for more mature releases;)
2018-02-23 07:32 AM
It's worked pretty well for me except (under Ubuntu) the 'File path' Browse button quit working and editing 'File path' directly has gotten weird. Works fine in Windows but that's Java for you.
2018-02-23 07:50 AM
Sill use the ST-LINK Utility + DFU separately. Not sure what the new tool adds to what we had in the past...
2018-02-23 03:02 PM
Personally I use ST-Link from Eclipse during development and a range of Linux command line tools in other situations. I'm looking at it as an easy option for my staff so we have common software regardless of OS. It should be easier than trying to help people using the old Windows program when I can't actually run that myself.
2019-04-23 02:34 PM
I've just removed Oracle Java from my workstation and cannot run STM32Cube Programmer with Openjdk
I get this return when running through terminal:
~/opt/STM32CubeProgrammer/bin$ ./STM32CubeProgrammer
/home/user/opt/STM32CubeProgrammer/bin/STM32CubeProgrammerLauncher
/home/user/opt/STM32CubeProgrammer/bin
JavaFX NOT installed => warn user
And a pop up screen saying that i must install openjfx
I've already installed openjfx and it didn't fix the situation.
~/opt/STM32CubeProgrammer/bin$ java -version
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment (build 11.0.2+9-Ubuntu-3ubuntu118.10.3)
OpenJDK 64-Bit Server VM (build 11.0.2+9-Ubuntu-3ubuntu118.10.3, mixed mode, sharing)
~/opt/STM32CubeProgrammer/bin$ javac -version
javac 11.0.2
2019-06-12 08:16 AM
Same problem on Ubuntu 18.04.
'openjfx' is installed, and I tried with 'default-jre', 'openjdk-8-jre' and 'openjdk-11-jre' - all fail similarly.
Works fine on Ubuntu 16.04, with openjdk-8-jre.
STMCubeProgrammer 2.1.0
2019-11-07 10:25 AM
We should install old packages for openjfx for Java 8 not only one openjfx:
sudo apt install openjfx=8u161-b12-1ubuntu2 libopenjfx-java=8u161-b12-1ubuntu2 libopenjfx-jni=8u161-b12-1ubuntu2 openjfx-source=8u161-b12-1ubuntu2
And protect it for update
sudo apt-mark hold libopenjfx-java libopenjfx-jni openjfx openjfx-source
Full guide in Russian
https://blog.radiotech.kz/programmy/stm32cubeprogrammer-ne-zapuskaetsya-v-linux/