cancel
Showing results for 
Search instead for 
Did you mean: 

How to install STM32CubeMX on Ubuntu?

MQi.1
Senior II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
MQi.1
Senior II

One can update to 6.8.0 after run STM32CubeMX 6.7.0

View solution in original post

11 REPLIES 11
AScha.3
Chief II

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".
raptorhal2
Lead

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

Where did you install them?

Where did you install it?

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
Senior II

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
Senior II

One can update to 6.8.0 after run STM32CubeMX 6.7.0

ToddB1
Associate II

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.

> 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?