I have a bunch of computers (mostly Windows) with a couple of different Java versions to maintain. It is cumbersome to download all new versions on all computers, unpack und replace that Java versions.
TBW: describe yaml
JU_CONFIG_ARCHJU_CONFIG_TYPEJU_CONFIG_VENDORJU_CONFIG_VERSION
NOTE: The variables used for the directory are not prefixed with env.!
TBW: cron/systemd
Run as Administrator
schtasks /create /tn "Update Java Installations" /tr "<path/to/java-update.exe> --config <path/to/config>" /sc onlogonThis will run the Java Updater each time the user logs on.
All variables will be made available to the executed program via its environment.
env.JU_ARCHenv.JU_CONFIG_ARCHenv.JU_CONFIG_TYPEenv.JU_CONFIG_VENDORenv.JU_CONFIG_VERSIONenv.JU_DIRECTORYenv.JU_OSenv.JU_TYPEenv.JU_VENDOR_IDenv.JU_VENDOR_NAME
Additionally to the common variables, the following variables will be made available as well:
env.JU_ERRORenv.JU_OLD_VERSION(only set, when available)
Additionally to the common variables, the following variables will be made available as well:
env.JU_NEW_VERSIONenv.JU_OLD_VERSION(only set, when available)
Additionally to the common variables, the following variables will be made available as well:
env.JU_NEW_VERSIONenv.JU_OLD_VERSION(only set, when available)