cancel
Showing results for 
Search instead for 
Did you mean: 

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

RBoer
Associate II

On a more or less clean MacOS Mojave 10.14.6, installed the Oracle JDK (jdk-12.0.2_osx-x64_bin.dmg), installed the stm32cubeprogrammer (using the workaround via commandline). Now after installation, when starting it gives an error "The application “STM32CubeProgrammer�? can’t be opened."

Opening /Applications/.../Stm32CubeProgrammers/Contents/MacOS/bin/STM32CubeProgrammer

Shows the following problem in a terminal-box:

/Applications/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin/STM32CubeProgrammer ; exit;

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

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

logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.

[Process completed]

In another post someone was having the same problem on Linux and the advice was to install javajfx, but as mentioned, it is said the be included in the 12.0.2 JDK... Any advice on how to get it to run?

10 REPLIES 10

I have the same, no launcher