JAVA Error while installing TAS on a Linux Machine: 'Error: Java 17 or 21 is required, but has not been detected.'

JAVA Error while installing TAS on a Linux Machine: 'Error: Java 17 or 21 is required, but has not been detected.'

book

Article ID: KB0137896

calendar_today

Updated On:

Products Versions
TIBCO Activation Service 1.1.0

Description

Symptoms ->

While installing TAS on a Linux Machine that already has an older version of Java installed, the yum install command does not show any error on the console; however, the following error is seen in the tibco-activation logs [/var/log/tibco/tibco-activate-install.log]:
-------------------------------------------------------------
Error: Java 17 or 21 is required, but has not been detected
-------------------------------------------------------------

Additionally, the README.txt file, which contains the Service URL, is not created in the '/usr/libexec/tib-lm/' directory.


Cause ->

The error is seen when TAS is installed on a Linux Machine that already has an older version of Java installed. TAS requires JAVA 17 in order to function properly. Since the JAVA_HOME is set to Java 1.8, the TAS runs into this error.

An older version of Java is already present on the machine:
--------------------------------------------------------------------------------------------
[diksha_gosavi@gasdseudtas1101 ~]$ which java
/usr/bin/java
[diksha_gosavi@gasdseudtas1101 ~]$ java -version
openjdk version "1.8.0_462"
OpenJDK Runtime Environment (build 1.8.0_462-b08)
OpenJDK 64-Bit Server VM (build 25.462-b08, mixed mode)
[diksha_gosavi@gasdseudtas1101 ~]$ 
--------------------------------------------------------------------------------------------

Errors are seen in the installation logs [/var/log/tibco/tib-activate-install.log] after the installation:
--------------------------------------------------------------------------------------------
[diksha_gosavi@gasdseudtas1101 rpm]$ cat /var/log/tibco/tib-activate-install.log
2025/08/05 12:10:38 Installing TIBCO® Activation Service...
2025/08/05 12:10:38 Starting SetJavaHome
2025/08/05 12:10:38 JAVA_HOME environment variable not set, trying to find Java installation...
2025/08/05 12:10:38 Considering entry: java
2025/08/05 12:10:38 Considering entry: java-1.8.0
2025/08/05 12:10:38 Considering entry: java-1.8.0-openjdk
2025/08/05 12:10:38 Considering entry: java-1.8.0-openjdk-1.8.0.462.b08-2.el8.x86_64
2025/08/05 12:10:38 Considering entry: java-17-openjdk-17.0.16.0.8-2.el8.x86_64
2025/08/05 12:10:38 Considering entry: java-openjdk
2025/08/05 12:10:38 Considering entry: jre
2025/08/05 12:10:38 Considering entry: jre-1.8.0
2025/08/05 12:10:38 Considering entry: jre-1.8.0-openjdk
2025/08/05 12:10:38 Considering entry: jre-1.8.0-openjdk-1.8.0.462.b08-2.el8.x86_64
2025/08/05 12:10:38 Considering entry: jre-17-openjdk-17.0.16.0.8-2.el8.x86_64
2025/08/05 12:10:38 Considering entry: jre-openjdk
2025/08/05 12:10:38 Found Java candidates:
2025/08/05 12:10:38 [/usr/lib/jvm/jre-17-openjdk-17.0.16.0.8-2.el8.x86_64 /usr/lib/jvm/java-17-openjdk-17.0.16.0.8-2.el8.x86_64]
2025/08/05 12:10:38 Checking Java version in /usr/lib/jvm/jre-17-openjdk-17.0.16.0.8-2.el8.x86_64
2025/08/05 12:10:38 openjdk version "17.0.16" 2025-07-15 LTS
OpenJDK Runtime Environment (Red_Hat-17.0.16.0.8-1) (build 17.0.16+8-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-17.0.16.0.8-1) (build 17.0.16+8-LTS, mixed mode, sharing)

2025/08/05 12:10:38 Java found at /usr/lib/jvm/jre-17-openjdk-17.0.16.0.8-2.el8.x86_64
2025/08/05 12:10:38 Creating group tibactivate
2025/08/05 12:10:39 Creating user tibactivate
2025/08/05 12:10:43 Certificate and related files generated successfully.
2025/08/05 12:10:43 Keystore and certificate setup completed.
No local configuration file found to back up.
2025/08/05 12:10:43 Installing license service...
2025/08/05 12:10:43 Command /usr/libexec/tib-lm/server/install-systemd.sh -n --overwrite --user tibactivate --group tibactivate --program-dir /usr/libexec/tib-lm/server --data-dir /var/tmp/tibco/tib-lm --port 0 --tls-port 7070 --tls-cert /var/tmp/tibco/tib-lm/license-server.p12 --tls-cert-password N1KAyFqve3JFnJ4xgbGjFWYKqRvnXYoR --logging-style DAILY_ROLLOVER_UTC returned error: exit status 1
2025/08/05 12:10:43 Error: Java 17 or 21 is required, but has not been detected.

2025/08/05 12:10:43 exit status 1
[diksha_gosavi@gasdseudtas1101 rpm]$ 
--------------------------------------------------------------------------------------------

The README.txt file was not created in the ‘/usr/libexec/tib-lm/’:
--------------------------------------------------------------------------------------------
[diksha_gosavi@gasdseudtas1101 tib-lm]$ pwd
/usr/libexec/tib-lm
[diksha_gosavi@gasdseudtas1101 tib-lm]$ ls -lrt
total 0
drwxr-xr-x 2 tibactivate tibactivate 131 Aug  5 12:33 server
[diksha_gosavi@gasdseudtas1101 tib-lm]$ 
--------------------------------------------------------------------------------------------

Resolution

1. Un-install TAS from the machine:

  1. For RHEL server ->
    sudo yum -y remove tibco-activation-util.x86_64
    sudo yum -y remove tibco-activation-server.x86_64

  2. For Debian-based or Ubuntu system ->
    sudo apt-get -y remove tibco-activation-util
    sudo apt-get -y remove tibco-activation-server 

-----------------------------------------------------------------------------------------------
[diksha_gosavi@gasdseudtas1101 rpm]$ sudo yum -y remove tibco-activation-util.x86_64
[sudo] password for diksha_gosavi:
Dependencies resolved.
=====================================================================================================================================================
 Package                                     Architecture                 Version                          Repository                           Size
=====================================================================================================================================================
Removing:
 tibco-activation-util                       x86_64                       1.1.0-12                         @@commandline                       9.3 M

Transaction Summary
=====================================================================================================================================================
Remove  1 Package

Freed space: 9.3 M
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                             1/1
  Erasing          : tibco-activation-util-1.1.0-12.x86_64                                                                                       1/1
  Verifying        : tibco-activation-util-1.1.0-12.x86_64                                                                                       1/1
Installed products updated.

Removed:
  tibco-activation-util-1.1.0-12.x86_64

Complete!
[diksha_gosavi@gasdseudtas1101 rpm]$ sudo yum -y remove tibco-activation-server.x86_64
Dependencies resolved.
=====================================================================================================================================================
 Package                             Architecture      Version                          Repository                                              Size
=====================================================================================================================================================
Removing:
 tibco-activation-server             x86_64            1.1.0-12                         @@commandline                                          103 M
Removing unused dependencies:
 java-17-openjdk-headless            x86_64            1:17.0.16.0.8-2.el8              @rhui-rhel-8-for-x86_64-appstream-rhui-rpms            196 M

Transaction Summary
=====================================================================================================================================================
Remove  2 Packages

Freed space: 299 M
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                             1/1
  Running scriptlet: tibco-activation-server-1.1.0-12.x86_64                                                                                     1/2
  Erasing          : tibco-activation-server-1.1.0-12.x86_64                                                                                     1/2
  Erasing          : java-17-openjdk-headless-1:17.0.16.0.8-2.el8.x86_64                                                                         2/2
  Running scriptlet: java-17-openjdk-headless-1:17.0.16.0.8-2.el8.x86_64                                                                         2/2
  Verifying        : java-17-openjdk-headless-1:17.0.16.0.8-2.el8.x86_64                                                                         1/2
  Verifying        : tibco-activation-server-1.1.0-12.x86_64                                                                                     2/2
Installed products updated.

Removed:
  java-17-openjdk-headless-1:17.0.16.0.8-2.el8.x86_64                             tibco-activation-server-1.1.0-12.x86_64

Complete!
[diksha_gosavi@gasdseudtas1101 rpm]$ 
-----------------------------------------------------------------------------------------------

2. Upgrade Java version to 17 on the Linux machine.

  1. Install Java 17 on the machine:
    sudo dnf install java-17-openjdk-devel -y

  2. Switch the default Java version to 17: 
    For RHEL server ->
    sudo alternatives --config java

    For Debian-based or Ubuntu system ->
    sudo update-alternatives --config java

    Result would be like:
    -------------------------------------------------------------------------------
    [diksha_gosavi@gasdseudtas1101 jvm]$ sudo alternatives --config java
    There are 2 programs which provide 'java'.
      Selection    Command
    -----------------------------------------------
    *+ 1           java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.462.b08-2.el8.x86_64/jre/bin/java)
       2           java-17-openjdk.x86_64 (/usr/lib/jvm/java-17-openjdk-17.0.16.0.8-2.el8.x86_64/bin/java)
    Enter to keep the current selection[+], or type selection number: 2
    [diksha_gosavi@gasdseudtas1101 jvm]$ 
    -------------------------------------------------------------------------------


  3. Verify:
    which java
    java -version
    -------------------------------------------------------------------------------
    [diksha_gosavi@gasdseudtas1101 rpm]$ which java
    /usr/bin/java
    [diksha_gosavi@gasdseudtas1101 rpm]$ java -version
    openjdk version "17.0.16" 2025-07-15 LTS
    OpenJDK Runtime Environment (Red_Hat-17.0.16.0.8-1) (build 17.0.16+8-LTS)
    OpenJDK 64-Bit Server VM (Red_Hat-17.0.16.0.8-1) (build 17.0.16+8-LTS, mixed mode, sharing)
    [diksha_gosavi@gasdseudtas1101 rpm]$ 

    -------------------------------------------------------------------------------

 

3. Reinstall TAS on the machine:

  1. For RHEL server ->
    sudo yum -y install tibco-activation_1.1.0_x86_64-server.rpm
    sudo yum -y install tibco-activation_1.1.0_x86_64-util.rpm

  2. For Debian-based or Ubuntu system ->
    sudo apt-get -y install ./tibco-activation_1.1.0_x86_64-server.deb
    sudo apt-get -y install ./tibco-activation_1.1.0_x86_64-util.deb


The tib-activate-install logs do not show any error messages
-------------------------------------------------------------------------------------------------------------------------------
2025/08/05 12:32:12 Installing TIBCO® Activation Service...
2025/08/05 12:32:12 Starting SetJavaHome
2025/08/05 12:32:12 JAVA_HOME environment variable not set, trying to find Java installation...
2025/08/05 12:32:12 Considering entry: java
2025/08/05 12:32:12 Considering entry: java-1.8.0
2025/08/05 12:32:12 Considering entry: java-1.8.0-openjdk
2025/08/05 12:32:12 Considering entry: java-1.8.0-openjdk-1.8.0.462.b08-2.el8.x86_64
2025/08/05 12:32:12 Considering entry: java-17
2025/08/05 12:32:12 Considering entry: java-17-openjdk
2025/08/05 12:32:12 Considering entry: java-17-openjdk-17.0.16.0.8-2.el8.x86_64
2025/08/05 12:32:12 Considering entry: java-openjdk
2025/08/05 12:32:12 Considering entry: jre
2025/08/05 12:32:12 Considering entry: jre-1.8.0
2025/08/05 12:32:12 Considering entry: jre-1.8.0-openjdk
2025/08/05 12:32:12 Considering entry: jre-1.8.0-openjdk-1.8.0.462.b08-2.el8.x86_64
2025/08/05 12:32:12 Considering entry: jre-17
2025/08/05 12:32:12 Considering entry: jre-17-openjdk
2025/08/05 12:32:12 Considering entry: jre-17-openjdk-17.0.16.0.8-2.el8.x86_64
2025/08/05 12:32:12 Considering entry: jre-openjdk
2025/08/05 12:32:12 Found Java candidates:
2025/08/05 12:32:12 [/usr/lib/jvm/jre-17 /usr/lib/jvm/java-17 /usr/lib/jvm/jre-17-openjdk /usr/lib/jvm/java-17-openjdk /usr/lib/jvm/jre-17-openjdk-17.0.16.0.8-2.el8.x86_64 /usr/lib/jvm/java-17-openjdk-17.0.16.0.8-2.el8.x86_64]
2025/08/05 12:32:12 Checking Java version in /usr/lib/jvm/jre-17
2025/08/05 12:32:13 openjdk version "17.0.16" 2025-07-15 LTS
OpenJDK Runtime Environment (Red_Hat-17.0.16.0.8-1) (build 17.0.16+8-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-17.0.16.0.8-1) (build 17.0.16+8-LTS, mixed mode, sharing)

2025/08/05 12:32:13 Java found at /usr/lib/jvm/jre-17
2025/08/05 12:32:20 Certificate and related files generated successfully.
2025/08/05 12:32:20 Keystore and certificate setup completed.
No local configuration file found to back up.
2025/08/05 12:32:20 Installing license service...
2025/08/05 12:32:43 Installing license service... done
Local configuration file updated successfully.
README.txt created.
2025/08/05 12:33:08 License service started successfully.
2025/08/05 12:33:08 Installing TIBCO® Activation Service... done
-------------------------------------------------------------------------------------------------------------------------------

Also, the README.txt file is created.

-------------------------------------------------------------------------------------------------------------------------------
[diksha_gosavi@gasdseudtas1101 rpm]$ cat /usr/libexec/tib-lm/README.txt
The TIBCO Activation Service has been installed as a service on this machine. It is reachable
at the following URL:

        https://gasdseudtas1101:7070?fp=37a56de8axxxxxb8a74f314c6e8xxxxx6d818319843f46982xxxxx6d850e47d1

The hostname above may need to be adjusted depending on your network configuration.

The name of the service is FNLS-osp.
If the service is not running, you can start it with the following command:
        systemctl start flexnetls-osp
To stop the service, use:
        systemctl stop flexnetls-osp
[diksha_gosavi@gasdseudtas1101 rpm]$
-------------------------------------------------------------------------------------------------------------------------------

Issue/Introduction

While installing TAS on a Linux Machine, it runs into the error 'Error: Java 17 or 21 is required, but has not been detected.'