Problems installing DbSolo5 with latest JAVA in Linux - Workaround

Skip to first unread message

Christos Pontikis

Dec 13, 2019, 6:50:21 AM12/13/19
to DB Solo
First, thank you for this great software!

The problem: I cannot install DbSolo5 in Linux with latest java

In a (X)ubuntu 18.04 LTS system

pontikis@fs3650:~$ java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)

DbSolo installation will not performed as install4j complains for JRE 1.8 


Unpack somewhere (/data/apps in my case)

As root

cd /usr/bin
ln -s -f /data/apps/jre1.8.0_231/bin/java java

As user

cp ~/.install4j ~/.install4j.BAK

Change first two lines of .install4j as following

JRE_VERSION /usr    1   8   0   231
JRE_INFO    /usr    0

Perform DbSolo5 installation!

Then, revert java version in your system (as root)

cd /usr/bin
ln -s -f /etc/alternatives/java java

You may also revert .install4j

Hope that helps!

Message has been deleted


Feb 28, 2020, 7:13:50 PM2/28/20
to DB Solo
On Ubuntu 18.04 as sudo:

root@raisin:~# type -a update-alternatives
update-alternatives is /usr/bin/update-alternatives

root@raisin:~# update-alternatives --config java

There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
  0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      manual mode
* 2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode
  3            /usr/lib/jvm/java-8-oracle/jre/bin/java          1081      manual mode

Press <enter> to keep the current choice[*], or type selection number: 

Pick the number of your choice and that will take care of it

On CentOS (RedHat, Oracle Linux) 7 - use the "alternatives --config java" instead.

Hope this helps


Christos Pontikis

Feb 4, 2021, 2:28:59 PM2/4/21
to DB Solo
Hello Zafer

yes, the solution you suggested is the official (and correct) solution.

I just summarize it here and I add the command to install a manually downloaded JRE (in my case /data/apps/jre1.8.0_261):

sudo update-alternatives --install /usr/bin/java java /data/apps/jre1.8.0_261/bin/java 100


sudo update-alternatives --config java

There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                         Priority   Status
* 0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java   1111      auto mode
  1            /data/apps/jre1.8.0_261/bin/java              100       manual mode
  2            /usr/lib/jvm/java-11-openjdk-amd64/bin/java   1111      manual mode

Press <enter> to keep the current choice[*], or type selection number: 

At this time you have to select (1) to change the default java. Now you can install DbSolo

Afterwards, run again

sudo update-alternatives --config java

and select the default option (0)

Best regards
Reply all
Reply to author
0 new messages