2018-01-11 02:54 AM
Under Linux Debian Stretch:
- if I use the shortcut nothing happens
- if I type ./STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32CubeProgrammerLauncher,
I have this error message: Error: Could not find or load main class com.st.app.Main
What should I do in order to run Cube Programmer ?
Regards
Cedric
Solved! Go to Solution.
2019-12-01 11:23 AM
don't waste your time...its a "know limitation" .... STM32Cube programmer don't work on ubuntu 18.04.
2020-01-19 09:02 AM
Great! A wasted Sunday morning. Someone please post to this thread when they get it fixed.
Rich
2020-01-30 12:47 AM
Solution from below link fixed my problem:
https://www.fosstechnix.com/install-oracle-java-8-on-ubuntu/
Greetings
kuadamku
2020-02-17 03:05 AM
Managed to make it work on Ubuntu 18.04 with the following:
update-java-alternatives -l
sudo update-java-alternatives -s java-1.8.0-openjdk-amd64
sudo apt remove openjfx libopenjfx-java libopenjfx-jni libopenjfx-java-doc openjfx-source --purge
sudo apt install libopenjfx-java=8u161-b12-1ubuntu2
2020-02-17 07:30 AM
No, your way doesn't work. Mine works 100%
2020-02-23 01:07 PM
Carlos' advisory above may have been valid 3 months ago but it's NOT TRUE now -- I can vouch for having it working on an Ubuntu 18.04 desktop, after installing JFX.
BUT.. am not in the office today (Sunday) and am trying to get it going on a laptop, trying to remember what else I had to do... sorry not hugely helpful but I assure you it will run on 18.04. I use it daily.
2020-02-23 02:32 PM
SOLUTION for Ubuntu 18.04 CURRENT 22 Feb 2020: The detail advice is provided in ST's USER MANUAL for the Programmer, which is here:
Relevant instructions for Ubuntu 18.04 are:
To get STM32CubeProgrammer working with Ubuntu ® 18.04
1. Install OpenJDK 8
a) sudo apt install openjdk-8-jre-headless
2. Set OpenJDK 8 as your default Java Runtime Engine
a) sudo update-alternatives --config java
3. Install OpenJFX
a) sudo apt purge openjfx
b) sudo apt install openjfx=8u161-b12-1ubuntu2 libopenjfx-jni=8u161-b12-1ubuntu2
libopenjfx-java=8u161-b12-1ubuntu2
c) sudo apt-mark hold openjfx libopenjfx-jni libopenjfx-java
To install the STM32CubeProgrammer tool, you need to download and extract the zip
package and execute SetupSTM32CubeProgrammer-vx.y.z.linux, which guides you through the installation process.
~~~~~~~~~
I've just done this on Ubuntu 18.04 on an i5 and it works fine now.
(And I remember now this was what I had to do a few months back on the desktop mentioned above).
Good luck all.
2020-02-23 02:36 PM
I tried your way but that didn't work for me. Solved : see my update above -- I find the instructions from the User Manual work fine:
2020-03-19 06:12 AM
I wish this did use OpenJDK. This could mean oracle would have control of the IDE under linux.
2020-03-19 06:15 AM
work with OpenJDK, but version 8