System Workbench for STM32

Ubuntu 18.04: Installer does not find JRE

Hi there,

trying to install sw4stm32 on my system:

Description: Ubuntu 18.04.1 LTS

Release: 18.04

Codename: bionic

I did try both v2.7 and latest vs Java 8 and Java 11:

java 11.0.1 2018-10-16 LTS

Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)

Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)


java version “1.8.0_191”

Java(TM) SE Runtime Environment (build 1.8.0_191-b12)

Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

output is always :

install_sw4stm32_linux_64bits-latest.run: 34: install_sw4stm32_linux_64bits-latest.run: [: not found

install_sw4stm32_linux_64bits-latest.run: 67: install_sw4stm32_linux_64bits-latest.run: [[: not found
Checking integrity... (could take a while, -m to bypass)
Extracting JRE... done
install_sw4stm32_linux_64bits-latest.run: 124: install_sw4stm32_linux_64bits-latest.run: [[: not found
install_sw4stm32_linux_64bits-latest.run: 127: install_sw4stm32_linux_64bits-latest.run: [[: not found
No JavaRE found, please download and install JavaRE 7 (64 bits) or newer version.

Go to http://www.oracle.com/technetwork/java/javase/downloads/index.htmlQuestion

Do I need to downgrade to java7 ?

Looking at the messages above, it seems you don’t use bash as you login shell; could you try typing chsh at a command prompt and switch to /bin/bash if you have another shell?

Of course you must first check that bash is installed on your system by trying to execute it directly, or typing which bash

Then try again to install System Workbench for STM32

Bernard (Ac6)

Seems I am using /bin/bash already:

$which bash


similar with chsh:

Enter the new value, or press ENTER for the default

Login Shell /bin/bash: