Skip to main content

Add to /etc/profile.local:

export JAVA_HOME=/usr/java/latest
export JAVA_HOME

to /etc/profile.local.

That way it will be set for all users and will be independent of the release or patch-number. /usr/java/latest/usr/java/latest is a link to the latest installed version and exists since JDK/JRE 1.6

Add

JAVA_HOME=/usr/java/latest
export JAVA_HOME

to /etc/profile.local.

That way it will be set for all users and will be independent of the release or patch-number. /usr/java/latest is a link to the latest installed version and exists since JDK/JRE 1.6

Add to /etc/profile.local:

export JAVA_HOME=/usr/java/latest

That way it will be set for all users and will be independent of the release or patch-number. /usr/java/latest is a link to the latest installed version and exists since JDK/JRE 1.6

Add export JAVA_HOME=/usr/java/latest

JAVA_HOME=/usr/java/latest
export JAVA_HOME

to /etc/profile.local.

That way it will be set for all users and will be independent of the release or patch-number. /usr/java/latest is a link to the latest installed version and exists since JDK/JRE 1.6

Add export JAVA_HOME=/usr/java/latest to /etc/profile.local.

That way it will be set for all users and will be independent of the release or patch-number. /usr/java/latest is a link to the latest installed version and exists since JDK/JRE 1.6

Add

JAVA_HOME=/usr/java/latest
export JAVA_HOME

to /etc/profile.local.

That way it will be set for all users and will be independent of the release or patch-number. /usr/java/latest is a link to the latest installed version and exists since JDK/JRE 1.6

Source Link
Nils
  • 18.6k
  • 11
  • 52
  • 85

Add export JAVA_HOME=/usr/java/latest to /etc/profile.local.

That way it will be set for all users and will be independent of the release or patch-number. /usr/java/latest is a link to the latest installed version and exists since JDK/JRE 1.6