{"id":12714,"date":"2026-11-24T10:05:26","date_gmt":"2026-11-24T16:05:26","guid":{"rendered":"https:\/\/www.mrc-productivity.com\/techblog\/?post_type=ht_kb&#038;p=12714"},"modified":"2026-11-24T10:05:27","modified_gmt":"2026-11-24T16:05:27","slug":"auto-update-m-powers-jdk","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/techblog\/?ht_kb=auto-update-m-powers-jdk","title":{"rendered":"Auto Update m-Power&#8217;s JDK"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Whether you are running JDK11 or JDK17 (both are actively supported), you probably want to have the latest version of this JDK installed to ensure any known security vulnerabilities have been addressed. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The problem with this is managing this process manually can take a significant amount of time from an administration perspective.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thankfully, we&#8217;ve created a small utility that can either be run interactively or put on a schedule. When this process runs, it will identify what version of JDK you are running and install the latest minor version of the JDK. It will then update the necessary Tomcat configurations to point to this latest version.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Download and install <a href=\"\/products\/mpower\/jdk-update-installer.zip\" data-type=\"link\" data-id=\"\/products\/mpower\/jdk-update-installer.zip\">this file<\/a> on your m-Power server. Unzip this file.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Interactive Execution<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Execute the bat file on the Windows server in Administrator mode. On Linux, execute the shell file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Scheduling<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The readme file has full information but an important detail that cannot be overlooked is that when scheduling ensure you are passing the \/yes flag as this will instruct the program to not pause or prompt the user. Since this is being scheduled, any prompt or pause would cause the system to fail.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">This process will only upgrade the JDK to the latest minor version available based on the major version that is currently installed on your server.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\">If you are interested in upgrading from JDK11 to JDK17, please check out <a href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/upgrading-to-tomcat-10-and-jdk-17\" data-type=\"link\" data-id=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/upgrading-to-tomcat-10-and-jdk-17\">this<\/a> documentation instead.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whether you are running JDK11 or JDK17 (both are actively supported), you probably want to have the latest version of this JDK installed to ensure any known security vulnerabilities have been addressed. The problem with this is managing this process manually can take a significant amount of time from an&#8230;<\/p>\n","protected":false},"author":3,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[],"ht-kb-tag":[],"class_list":["post-12714","ht_kb","type-ht_kb","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/12714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12714"}],"version-history":[{"count":1,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/12714\/revisions"}],"predecessor-version":[{"id":12715,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/12714\/revisions\/12715"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12714"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=12714"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=12714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}