Skip to main content
1 of 3
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

Nils
  • 18.6k
  • 11
  • 52
  • 85