Is it possible to use a generic Folder Name for the JAVA_HOME
Environment variable in Linux?
At the Moment our JAVA_HOME
variable is set to /usr/lib/Java_1_8_212
and when the server was updated to Java_1_8_222
our application Server stopped working because the old Folder does not even exist.
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64/jre
What is the recommendation here?
Ask our infrastructure Team to always use a generic Folder and set
JAVA_HOME=/usr/lib/Java/jre
Ask our infrastructure Team to always update the
JAVA_HOME
variable with the new Folder name