Good Afternoon,
I’m having an issue updating Java on 60 nodes. Here’s a little background.
We have implemented a new teller software a few months ago which needs Java to run. It is time to update Java for the first time and I keep getting an error.
Initially, I received an error saying the patch must be manually cached on the server. I went to the Java website and downloaded the .exe for that specific patch. I added it to the update cache folder and changed the name to the provided SHA1 name in the error (sha1=49901a5961c2cdd9a46930d4008a8f8d0b1aad27).
After I made that change I pushed the update to a node again and it failed again. I’m really not sure what the issue is or where I should start troubleshooting. I’m confident I downloaded the correct .exe and used the correct SHA1 name.
Here’s a summary of the action history:
Completed begin prefetch block
Completed add prefetch item name = jre-8u144-windows-i586.exe sha1=49901a5961c2cdd9a46930d4008a8f8d0b1aad27 size=57217088 url={value of setting “_BESClient_AllowCustomRepoDownloads” of client | “http://download.oracle.com/MANUAL_BES_CACHING_REQUIRED/”}jre-8u144-windows-i586.exe sha256=f2b7ecc17abef42ed3ed1b34147360be52bf33c00b013c9c58ba19e7013a4080
Completed end prefetch block
Failed continue if {not exists running application whose ((it = “java.exe” OR it = “javaw.exe” OR it = “javaws.exe” OR it = “iexplore.exe” OR it = “firefox.exe”) of (name of it as lowercase))}
// Note: update .exe will restart service automatically
if{exists running service “JavaQuickStarterService”}
delete __appendfile
delete stop_javaquickstarter.bat
appendfile net stop JavaQuickStarterService
move __appendfile stop_javaquickstarter.bat
waithidden stop_javaquickstarter.bat
endif
//if it is win2k/2k3/xp system, just invoke the .exe installer
if {(name of it contains “Win2000” or name of it contains “WinXP” or name of it contains “Win2003”) of operating system}
waithidden __Download\jre-8u144-windows-i586.exe /s
else
// Remove any existing directory junction point
dos %windir%\syswow64\cmd.exe /C fsutil reparsepoint delete “%windir%\syswow64\config\systemprofile\appdata\locallow\sun\java"
dos %windir%\syswow64\cmd.exe /C fsutil reparsepoint delete “%windir%\syswow64\config\systemprofile\appdata\locallow\oracle\java”
// delete java directory in 32bit version of system32, if any
dos rmdir /q /s “%windir%\syswow64\config\systemprofile\appdata\locallow\sun\java"
dos rmdir /q /s “%windir%\syswow64\config\systemprofile\appdata\locallow\oracle\java”
//create a java folder under system32 folder if not exists
if {not exist folder (system folder as string &”\config\systemprofile\appdata\locallow\oracle\java”)}
action uses wow64 redirection false
dos mkdir "%windir%\syswow64\config\systemprofile\appdata\locallow\oracle"
dos mkdir "%windir%\system32\config\systemprofile\appdata\locallow\oracle\java"
endif
// create ntfs junction point from 32bit version of system32 java files to sysnative version
// (NOTE: mklink argument seems to be in native path perspective, so system32 is correct here, not sysnative)
action uses wow64 redirection false
dos mklink /J “%windir%\syswow64\config\systemprofile\appdata\locallow\oracle\java” “%windir%\system32\config\systemprofile\appdata\locallow\oracle\java”
// Finally, try to install java…
action uses wow64 redirection false
dos %windir%\syswow64\cmd.exe /C __Download\jre-8u144-windows-i586.exe /s
endif
action may require restart "49901a5961c2cdd9a46930d4008a8f8d0b1aad27"
continue if {((exists value “DisplayVersion” whose ((it >= “8.0.1440”) of (it as string as version)) of keys whose (value “DisplayName” of it as string as lowercase contains “j2se runtime environment” OR value “DisplayName” of it as string as lowercase contains “runtimeenvironment” OR value “DisplayName” of it as string as lowercase starts with “java™” OR value “DisplayName” of it as string as lowercase starts with “java 8”) of it) AND (exists key whose (((it contains “java” OR it contains “j2se”) AND (it contains “runtime environment” OR it contains “update”)) of (value “DisplayName” of it as string as lowercase)) of it)) of key “HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall” of x32 registry}
Please advise.