java: command not found when installing L&G v7.0.0
2 years ago
Originally Published: 2016-04-20
Article Number
000064604
Applies To
RSA Product Set: Identity Management and Governance
RSA Product/Service Type: Software Appliance
RSA Version/Condition: 7.0.0
Platform: Wildfly
Issue
I am working on upgrading Aveksa and installing the application on a new server. I am close to completing the installation, but I am continuously running into the follow error: line 22:java: command not found
Cause
umask of root set to 077
Resolution
**as root**

vim /etc/profile

** look for the part that looks like this (umask settings) **

if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then
    umask 002
else
    umask 022
fi

** Make sure the umask values are 022 for root and 002 for other users. if not make them like that then run the below **

source /etc/profile

** run the below command to find the directory where JDK 1.7 was installed, then delete that directory**

ll $JAVA_HOME

lrwxrwxrwx 1 root root 39 Dec 24 13:02 /etc/alternatives/java_sdk_1.7.0 -> /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0

rm -rf /usr/lib64/jvm/java-1.7.0-openjdk-1.7.0
Notes
Please try to use the base OS image supplied by the vendor (SUSE/RHEL) for installation, then apply any hardening afterwards