Skip to main content
MQi.1
Senior II
March 18, 2023
Solved

How to install STM32CubeMX on Ubuntu?

  • March 18, 2023
  • 5 replies
  • 10333 views

I ran "SetupSTM32CubeMX-6.8.0.sh", it was prompt:

Check exe path on linux
FullExe path1 is: /usr/bin/SetupSTM32CubeMX-6.8.0
Exe path is: /usr/bin
Search java from relative path ----
Checking java in /usr/bin/./jre/bin/java
Checking java in /usr/bin/../jre/bin/java
Checking java in /usr/bin/../../jre/bin/java
Checking java in /usr/bin/../../../jre/bin/java
Please install Java JRE 11.0.10 or a more recent version

since I have installed java, and the address was:

/usr/bin/java

how could I told the Setup*.sh where java is.

This topic has been closed for replies.
Best answer by MQi.1

One can update to 6.8.0 after run STM32CubeMX 6.7.0

5 replies

AScha.3
Super User
March 18, 2023

i have STM32CubeIDE on MX linux ; and CubeMonitor and CubeProgrammer ;

here also java in /usr/bin/java .

maybe : try installing CubeProgrammer (en.stm32cubeprg-lin_v2-11-0.zip contains lre/java )

and then cubeMX or cubeIDE .

"If you feel a post has answered your question, please click ""Accept as Solution""."
MQi.1
MQi.1Author
Senior II
March 21, 2023

Where did you install them?

raptorhal2
Lead
March 18, 2023

Installing the IDE first in accordance with UM2563, then MX on Ubuntu 20.04 worked OK for me. No separate JRE was required.

MQi.1
MQi.1Author
Senior II
March 21, 2023

Where did you install it?

AScha.3
Super User
March 21, 2023

Where ??? directory ? -> what it wants... afair /home/STMCubeIDE/workspace..

and the bins.. where it puts them (usr/bin/STM.. ).

if i remember : need to be root, to install ;

and then can happen, only root can work with it...so need give rights to user also

"If you feel a post has answered your question, please click ""Accept as Solution""."
MQi.1
MQi.1Author
Senior II
March 23, 2023

I downloaded and installed the version 6.7.0 than the latest 6.8.0, it was OK.

I found the /jre/bin in 6.8.0 zip file was empty,

and what inside /jre of 6.7.0 was:

bin/ conf/ include/ legal/ lib/ release

and inside /jre/bin of 6.7.0 was:

jaotc* jar* jarsigner* java* javac* javadoc* javap* jdeprscan* jdeps* jfr* jimage* jjs* jlink* jmod* jrunscript* keytool* pack200* rmid* rmiregistry* serialver* unpack200*

MQi.1
MQi.1AuthorBest answer
Senior II
March 23, 2023

One can update to 6.8.0 after run STM32CubeMX 6.7.0

ToddB1
Explorer
May 8, 2023

I'm having this same problem with 6.8.1, 6.8.0 and 6.7.0. All give me this error:

Check exe path on linux

FullExe path1 is: /home/todd/installs/SetupSTM32CubeMX-6.7.0

Exe path is: /home/todd/installs

Search java from relative path ----

Checking java in /home/todd/installs/./jre/bin/java

<JAVA_HOME>/lib/ext exists, extensions mechanism no longer supported; Use -classpath instead.

.Checking java in /home/todd/installs/../jre/bin/java

Checking java in /home/todd/installs/../../jre/bin/java

Checking java in /home/todd/installs/../../../jre/bin/java

Please install Java JRE 11.0.10 or a more recent version

Ubuntu 22.04.1

openjdk version "11.0.18" 2023-01-17

I confirmed all the files in jre/bin are executable.

Any suggestions would be appreciated.

Pavel A.
Super User
May 8, 2023

> I confirmed all the files in jre/bin are executable.

In which jre/bin? is your openjdk under one of location listed above? (relative to /home/todd/installs)

If not, can you create a symlink?

ToddB1
Explorer
May 9, 2023

My open jdk is installed at /usr/bin. Everything in the jre directory was installed by the tool.

I was able to work around this by installing the IDE, which had not problem, and using the MX embedded in it. I'm still interested in knowing how to fix this.