Skip to main content
Question

Set JAVA_HOME Path

  • June 22, 2016
  • 1 reply
  • 9 views

Forum|alt.badge.img+6

Hi, has anyone tried to set "export JAVA_HOME='/usr/libexec/java_home'" with a policy/script yet?
Or write it into the profile? No success on my side until now :(

The installation of the JDK 8u91 package is succeeding without issues.
Maybe someone can help me :)

1 reply

Mithrandir
Forum|alt.badge.img+7
  • Contributor
  • 38 replies
  • August 30, 2023

Had to run rsync to fakeout java version detection. PopOS! isn't really on the list of Jamf-approved Linux distros.

Tried exporting JAVA_HOME, updating alternatives, explicitly stating in both .profile & .bashrc, but for whatever reason the Jamf Pro installer kept insisting that my JAVA_HOME was jdk-17.0.6! Tried a symbolic link 1st, but didn't work until I ran the rsync.