2020-08-05 09:26 AM
Hello,
I installed STM32CubeProgrammer on Ubuntu 18.04 and when I run it using the graphical interface the program does not start. If I start It using the command line I can see the following error
Error: Could not find or load main class com.st.app.Main
I was using Java 8. I tried to use java 11 using the following command
sudo update-alternatives --config java
And now I get the following error:
Error: Could not find or load main class com.st.app.Main
caused by: java.lang.NoClassDefFoundError: javafx/application/Application
Regarding the java versions that I used this is the output of java -version when java8 was selected
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
and this is the output of java -version when java 11 was selected
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing)
So, how can I run STM32CubeProgrammer from Linux?