cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JRE libraries are missing or not compatible

JRE libraries are missing or not compatible

Introduction:

This article will helps you to resolve " JRE libraries are missing or not compatible" issue when running the Installer.

vanathi@vanathi-VirtualM1:~/InstallAnywhere 2022 Projects/My_Product_5/My_Product_5_Build_Output/Default_Configuration/Web_Installers/InstData/Linux/VM$ ./install.bin -i console
./install.bin: 107: [: /home/vanathi/InstallAnywhere: unexpected operator
Preparing to install
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

JRE libraries are missing or not compatible....
Exiting....

Scenario 1:
If you do not have enough space in your default temporary directory, Installer will fail with "JRE libraries are missing or not compatible" as it does not have space to extract the zipped up resources.
Please make more space available, or choose another temporary directory by exiting the installer.

Scenario 2:
When the /tmp was set to noexec, Installer will fail with "JRE libraries are missing or not compatible".
The noexec mount option specifies that the filesystem cannot contain executable binaries. the noexec option will be set only when users cannot run executable binaries from /tmp.


Troubleshooting Steps

For Scenario 1:
You can specify a different directory other than /tmp. The instructions are to set the IATEMPDIR environment variable to a directory on a disk partition with enough free disk space.

For example:
$ export IATEMPDIR=/var/tmp or export IATEMPDIR=/home/user/Desktop/tmp
$ ./install.bin -i console

OR

Increase the /tmp space by using the following command:
$mount -o remount,size=5G /tmp/
$ ./install.bin -i console

For Scenario 2:

Run Terminal and use one of the following commands to make sure that /tmp was set to noexec:

vanathi@vanathi-VirtualM1:~/Desktop$ findmnt -l|grep noexec
/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime
/proc proc proc rw,nosuid,nodev,noexec,relatime
/dev udev devtmpfs rw,nosuid,noexec,relatime,size=940308k,nr_inodes=235077,mode=755,inode64
/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
/sys/kernel/config configfs configfs rw,nosuid,nodev,noexec,relatime
/tmp tmpfs tmpfs rw,noexec,noatime,size=978584k,nr_inodes=244646,inode64
/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime

or

nathi@vanathi-VirtualM1:~/Desktop$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
tmpfs /tmp tmpfs defaults,rw,noatime,noexec,mode=1777 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0


To remove the noexec from /tmp,
1. Edit /etc/fstab
2. Remove noexec from line containing /tmp mount vi /etc/fstab
3. reboot

nathi@vanathi-VirtualM1:~/Desktop$ vi /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#tmpfs /tmp tmpfs defaults,rw,noatime,noexec,mode=1777 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

nathi@vanathi-VirtualM1:~/Desktop$ reboot.

Outcome:
vanathi@vanathi-VirtualM1:~/InstallAnywhere 2022 Projects/My_Product_5/My_Product_5_Build_Output/Default_Configuration/Web_Installers/InstData/Linux/VM$ ./install.bin -i console
Preparing to install
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
Launching installer...
===============================================================================
My_Product_5 (created with InstallAnywhere)
-------------------------------------------------------------------------------
Preparing CONSOLE Mode Installation...
===============================================================================
Installing...
-------------

Labels (5)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Mar 28, 2023 02:29 AM
Updated by:
Contributors