How to deploy Java using Configuration Manager

Welcome to the post that shows you how to deploy Java using Configuration Manager. In this post we will look at the steps for deploying Java using SCCM 1511. While writing this post, my configuration manager version is 1511. If you have configuration manager 2012 R2, you can still follow the same steps to deploy Java. When you download the Java installer, it’s an exe file. But there is a way to get the msi file. We will look at how to do that and deploy the Java using SCCM 1511. If you are not aware of what Java is, Java is a popular programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to data-centers, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere.

First we will download the Java offline installer. Click on the below link to download it.

Download Java 32/64 bit Offline

I have downloaded the 64 bit version of Java. You could download 32 bit or 64 bit based on your requirement.

How to deploy Java using Configuration Manager

Since the java software is downloaded as an exe file, we cannot extract an msi file out of it. To get the msi file you either need to install the java on one of the computer or you just need to run the executable(do not install it). When you install or run the executable, the msi file is found under the path %userprofile%>appdata>Locallow>Oracle>Java. Copy the java msi file to a shared folder.

How to deploy Java using Configuration Manager

How to deploy Java using Configuration Manager

Now we will see how to deploy java using Configuration Manager 1511. Launch the Configuration Manager console. Click on Software Library > Overview > Application Management. Right click Applications and click Create Application. In the create application wizard, choose Automatically detect information about this application from installation files. Provide the path where the msi file is located. Click Next.

How to deploy Java using Configuration Manager

Wait for the information to be imported. Once you see it’s successful, click Next.

How to deploy Java using Configuration Manager

Specify the information about the application such as Name, Publisher etc. For the Installation program, specify the command as

msiexec /i "jre1.8.0_71.msi" JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA=1 /q

Click Next.

How to deploy Java using Configuration Manager

Complete the remaining steps and click Close.

How to deploy Java using Configuration Manager

The Java application is ready to be deployed. Right click the Java app and click on Distribute Content. Once the content is distributed to the DP, right click the Java app and click on Deploy. Choose the device collection for which you want the Java to be deployed. In this case I have deployed the Java app to a test collection and made it available in the Software Center. You can see in the below screenshot that the Java app is available for Install. Click on Install.

How to deploy Java using Configuration Manager

The Java app has been installed successfully.

The Uninstall option also works fine. If you want to uninstall the Java app, just click on Uninstall. This option is tested and it works fine.

How to deploy Java using Configuration Manager

If the app fails to install, open the AppEnforce.log file and look for errors. In the below screenshot you can see the command line that we used to install Java worked perfectly fine.

How to deploy Java using Configuration Manager

Need Assistance?

Send us a message or post your question in forums.

25 thoughts on “How to deploy Java using Configuration Manager”

  1. Hello,

    I wanted to know how to update Java once it has been deployed? Or, how to update non-Microsoft software with SCCM.

  2. i need to update all client machines with the latest Version of java 8u162 but first i need to clean all java already installed, do you have any idea about it
    i have used the below :
    Task Sequences .
    uninstall : wmic product where “name like ‘Java%%’ and not name like ‘Java 8 Update 162%%'” call uninstall /nointeractive

    install Java 8u162 with Comment below :
    xcopy “C:\Windows\Sun\Java\Deployment\” /Y /Q /V
    xcopy exception.sites “C:\Windows\Sun\Java\Deployment\” /Y /Q /V
    jre-8u162-windows-i586.exe /s AUTO_UPDATE=Disable REMOVEOUTOFDATEJRES=1

  3. Hi Prajwal,

    I did follow your instruction above and works well to only users with admin right but not for standard user in Win 7 Pro.
    Do you have any suggestion for standard users deployment?

  4. How do you do this with Windows 10. I had no problems with finding the MSI file but now with Windows ten the folder does not show. Has anyone else ran into this issue?

  5. Hello, I followed the step-by-step guide and everything is perfect, I have doubts if this command uninstalls the previous versions of java ??

  6. There is definitely something wrong with Java’s installers.
    We’re currently using Oracle’s Java Enterprise MSI files, trying to deploy Java 8 Update 102.

    Using a vbscript I developed that will elevate with UAC when needed, it runs perfect with an account with administrative privileges.

    I’ve given this package to my VDI administrator that tries to inject it in with an admin account, the installation fails.

    I try to push out the package via SCCM, it gives me error 1603 (and further investigation in the MSI log file, it gives an error 1722 when the MSI reaches Oracle’s custome action to run “installer.exe” with parameters).

    Making matters worse, this enterprise MSI file fails when you simple double-click on it and try to install with an admin account. It will only install fine when you instantiate an elevated command prompt and run with a silent install with /q. In GUI mode, it simply fails too.

    My hinch is that although the MSI is being run as administrator, Oracle somehow screwed up their custom action and runs it with a non elevated access, which causes it to crash.

    Just follow the sequence well, you will see that the MSI will install Java Installer files to “C:Program Files (x86)Javajre*yourversionhere*” and the installer.exe is the real application that will install Java on the workstation.

    Here’s the exact MSI log about where it crashes:
    MSI (s) (E0:54) [16:55:21:246]: Product: Java 8 Update 102 — Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action installexe, location: C:Program Files (x86)Javajre1.8.0_102installer.exe, command: /s INSTALLDIR=”C:Program Files (x86)Javajre1.8.0_102\” WEB_JAVA_SECURITY_LEVEL=H STATIC=0 WEB_ANALYTICS=0 EULA=0 NOSTARTMENU=1 INSTALL_SILENT=1 AUTO_UPDATE=0 REPAIRMODE=1 ProductCode={26A24AE4-039D-4CA4-87B4-2F32180102F0}

  7. the msi file does not run… I think it happens to the latest version of java, which they are trying to charge for msi files download.

  8. Hi
    I would like to ask you if there is any way to automatical uninstal older java version after launching automatical instalation of java. I Have an issue, because some comuters in my network have 4 or 5 javas on them. I was using your method to install newest java versions on all devices.

  9. Have you tried this with update 77 & 91 at all? This method of deployment used to work, but with the last 2 releases when you grab the MSI it seems to be corrupted and will not execute. I have tested it from several machines. Wondering if anyone else is experiencing this issue?

    • Maybe just something didn’t work well. Anyway – can you please answer me to the question above? Seems like you’re using few parameters with same meaning (“JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0”) and some that could be seen in other installers but not this one (“RebootYesNo=No”) according do Oracle website.


Leave a Comment