


Xrs -Xmx256m -Dhudson.lifecycle= -jar "%BASE%\jenkins. Xrs -Xmx256m -Dhudson.lifecycle= -jar "%BASE%\jenkins.war" -httpPort=8080 -webroot="%BASE%\war"

It will create a directory like this C:\Program Files\Java\jre1.8.0_161. The second option is to install JRE on your Jenkins server directly from here. You can archive your old JRE installation files before that. You can see JAVA_HOME from Jenkins System info. Then just copy the JRE folder C:\Program Files\Java\jdk1.8.0_161\jre along with all its subfolders and files from your local computer to the JRE in the Jenkins folder (JAVA_HOME) so that you replace its contents. Typically on Windows it would install it in a folder like C:\Program Files\Java\jdk1.8.0_161. You can install Java on your local computer from here. #If a single result is returned, convert the result into a single value array so we don't run in to trouble calling. Uninstalling older versions of Java from your system ensures that Java applications will run with the latest security and performance improvements on your system.Įither download the attached script, or copy the code below and save it as Remove_old_java_versions.ps1 at the | sort Keeping old versions of Java on your system presents a serious security risk. This package checks for both 32-bit and 64-bit installed versions of Java, and silently uninstalls any old versions leaving behind only the newest.
