cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer 2.2.0 - Java issue

Wolfram Stumpf
Associate

Hi there!

I just installed the STM32CubeProgrammer and the GUI doesn't come up.

O/S: (cat /etc/os-release )

NAME="Linux Mint"
VERSION="19.2 (Tina)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19.2"
VERSION_ID="19.2"
[...]
VERSION_CODENAME=tina
UBUNTU_CODENAME=bionic

I tried with OpenJDK:

java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)

and

java version "11.0.4" 2019-07-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.4+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.4+10-LTS, mixed mode)

and

java version "12.0.2" 2019-07-16
Java(TM) SE Runtime Environment (build 12.0.2+10)
Java HotSpot(TM) 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)

with and without openjfx_11.0.2+1-1~18.04.2_amd64.deb installed

No matter what JDK is configure or whether openjfx is installed or not, I get this:

STM32CubeProgrammer
Error: Could not find or load main class com.st.app.Main
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

Do you have any hints how to get this up and running?

Thanks!

Wolfram

4 REPLIES 4
Houda GHABRI
ST Employee

Hi @Wolfram Stumpf​ ​,

Thanks for your feedback.

Java 11 and 12 are not yet supported, can you please use openjdk8 or orcle java8 ?

Regards,

Houda

Wolfram Stumpf
Associate

Hi @Houda GHABRI​ ,

I switched to:

openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

Result:

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

Regards,

Wolfram

​Hi @Wolfram Stumpf (Diehl Aerospace)​ ​,

I confirm there is issue with Gui under linux (you can check known problems and limitations in release note for STM32cubeProgrammer).

Devlopement team is already working to fix this issue . I will send you a patch fixing it as soon as it is ready.

Meanwhile you can use CubeProgrammer CLI .

Best regards,

Houda

Hello,

i just want to let you know I have the same problem on macOS Catalina.

best regards

fabian