cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProg install Ubuntu 18.04

RDos
Associate II

STM32Cube Prog does not work on ubuntu 18.04

Appears to install the openjfx package. Which is already installed

in the java package 11.03

6 REPLIES 6
roland van straten
Associate III

I have the same problem (and many other people) with ubuntu 19.04. The STMCubeProgrammer software has a flaw and it already cost me a lot of time trying to figure out what is happening than could be better spend on developing with the STM32MP1 :-(.

Also see this post that points to the real problem:

`https://askubuntu.com/questions/1153142/openjdk-detected-after-uninstall`

SO PLEASE ST SOLVE THIS PROBLEM ASAP.

joemccarr
Senior

Same here. Linux, the red-headed step child

Fix the damn thing or don't release it.

MJiao
Associate

same issue here.

MJiao
Associate

I solved this problem by the following steps:

  • install openjfx from ubuntu official repository
  • switch the java version to openjdk-11 by command line
sudo update-alternatives --config java
  • add javafx modules, --module-path and --add-modules are not supported by openjdk-8, so we have to switch to openjdk-11 to perform this operation, after modules added, we will switch java version back to 8.
java --module-path /usr/share/openjfx/lib --add-modules=javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web
  • use first command to switch java version back to openjdk-8

after those steps, I opened the eclipse app, I am not sure was this action fixed anything.

anyway, the stm32cubeprog suddenly worked!

my system config: ubuntu 18.04 lst, openjdk-8, openjdk-11, stm32cubeprog 2.1.0

joemccarr
Senior

Didn't work for me but glad you got it going. I am using the command Line interface option that ST has, that is working.

RNaid.1
Associate

@MJiao​  its working for me on Mac (in Virtual Machine) using the following commands. Thank You.

  1. sudo apt-get install openjfx
  2. sudo apt-get install openjdk-11-jre
  3. sudo apt-get update
  4. sudo apt-get upgrade
  5. Double Click on the SetupSTM32CubeProgrammer-2.3.0.linux
  6. Done