Esra Hekimoğlu
Esra Hekimoğlu

Reputation: 21

STM32CUBEPGROGRAMMER: You are using OpenJDK, please Install OpenJFX error

STM32CubeProgrammer seems to be installed yet when I try to run the program I come across with this error.

I have OpenJDK, OpenJFX and Oracle installed on my computer.

How can I fix the error?

Upvotes: 2

Views: 3523

Answers (2)

user2504669
user2504669

Reputation: 1

I was a little confused too until I noticed that the instructions above instruct you to download a past version of STMCubeProgrammer -> VERSION 2.2

When visiting the download page from the link emailed to you, note that there is a Version: selection box. Open it and choose 2.2 then click the download button. Resume the instructions above and you should be good to go.

Good luck!

Upvotes: 0

Pascal
Pascal

Reputation: 1093

If you are using macOS please see my installation guide here (tested with macOS Catalina 10.15.1 (19B88).

1.To be sure you use the right java version deinstall all java versions first

sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin  
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane  
sudo rm -rf /Library/Application\ Support/Oracle/Java/ 
sudo rm -rf /Library/Java/JavaVirtualMachines 

2.Restart your Mac

3.Check if the deinstallation was successful

~ java -version
No Java runtime present, requesting install.

4.Now install " jdk-8u231-macosx-x64 "

5.Check your java version after installation

~ java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)

6.Go to the directory where the STM32CubeProgrammer installer is located. For example

~ cd /Users/myName/Desktop/en

7.Install STM32CubeProgrammer

en sudo java -jar SetupSTM32CubeProgrammer-2.2.1.exe
6. The result should be
Command line arguments: 
====================
Installation started
Framework: 1.6.0_65-b14-468 (Apple Inc.)
Platform: mac_osx,version=10.15.1,arch=x86,symbolicName=null,javaVersion=1.8.0_231
Installation finished

8.Now you can start STM32CubeProgrammer

Upvotes: 2

Related Questions