Java SE Development Kit 8 (CPU) (Java SE Development Kit 8 (CPU)) has an extension attribute requiring attention
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
03-08-2019
02:35 AM
- last edited on
03-04-2025
01:55 AM
by
kh-richa_mig
Hello.
I recently got an error notification in Jamf stating:
"Java SE Development Kit 8 (CPU) (Java SE Development Kit 8 (CPU)) has an extension attribute requiring attention."
pointing to "Extension Attribute: Java 8 SE Development Kit"
see screenshot
Here is the bash code for the extension attribute:
!/usr/bin/env bash
##############################################################################
Collects information to determine which version of the Java JDK is installed by
looping through all the installed JDKs for the major version selected. And then
comparing the build number to determine the highest value. Builds the result as
1.X.Y, ignoring the build number, where X is major version and Y is the minor version. # #
####################################################################################
SEARCH_FOR_VERSION="8"
HIGHEST_BUILD="-1"
RESULT="Not Installed"
installed_jdks=$(/bin/ls /Library/Java/JavaVirtualMachines/)
for i in ${installed_jdks}; do version=$( /usr/bin/defaults read "/Library/Java/JavaVirtualMachines/${i}/Contents/Info.plist" CFBundleVersion )
major_version=/bin/echo "$version" | /usr/bin/awk -F'.' '{print $2}'
if [ "$major_version" -eq "$SEARCH_FOR_VERSION" ] ; then
# Split on 1.X.0_XX to get build number
build_number=/bin/echo "$version" | /usr/bin/awk -F'0_' '{print $2}'
if [ "$build_number" -gt "$HIGHEST_BUILD" ] ; then
HIGHEST_BUILD="$build_number"
RESULT="1.$major_version.$build_number"
fi
fi
done
/bin/echo "<result>$RESULT</result>"
Can anyone figure out what I wrong with that (I surely haven't changed anything) and how to fix that? Thank you.
Best regards,
Christian

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 03-08-2019 04:15 AM
This is an EA provided by Jamf.
They've made changes to it, and since an EA is basically code that gets executed on your machines every time they run recon,
you need to approve those changes.
I don't have one with pending changes at the moment, but you should be able to do that by hitting edit in the EA's options.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 03-08-2019 07:04 AM
@cbednarzwirecard You need to click edit on the patch software definition, go to the EA section, then approve it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 03-08-2019 07:43 AM
I got confused the first time I saw one of those messages too, so you're not alone. The instructions aren't clear enough on what needs to be done to clear that error. It's not until you click Edit that you even see the "Accept" button in the Extension Attribute section.
Maybe the wording in the message needs to include a basic instruction, like, "Click Edit on the Patch title and Accept the changes in the Extension Attributes section" or something like that.
