if
(
not exists file "/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/version.plist"
)
then ERROR "Not Installed" else if
(
string "CFBundleShortVersionString" of dictionary of file "/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/version.plist" as string
)
as version <
(
string "MinimumPlugInBundleVersion" of dictionary "com.apple.java.JavaAppletPlugin" of dictionary "10" of dictionary "PlugInBlacklist" of dictionary of file "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist" as version
)
then True else False
if (not exists file "/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/version.plist") then ERROR "Not Installed" else if (string "CFBundleShortVersionString" of dictionary of file "/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/version.plist" as string) as version < (string "MinimumPlugInBundleVersion" of dictionary "com.apple.java.JavaAppletPlugin" of dictionary "10" of dictionary "PlugInBlacklist" of dictionary of file "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist" as version) then True else False