resolved by creating the file /etc/profile.d/java.sh with the content : export JAVA_CMD=/usr/bin/java
resolved by creating the file /etc/profile. d/java. sh /usr/bin/ java
with the content :
export JAVA_CMD=