How to Deploy Java using Configuration Manager SCCM

Prajwal Desai
Posted by Prajwal Desai
Deploy Java using Configuration Manager

In this post, I will show you how to deploy Java using Configuration Manager. You can download the latest version of Java, package the Java application in SCCM and deploy it to your clients.

Configuration Manager makes it easy to package and deploy Java and create deployment that gives instructions to the SCCM client on how and when to install the software.

Before you can deploy an application, create at least one deployment type for the application. For more information, see Create deployment types for the application.

There are other ways to deploy Java in SCCM, for example, you can use Patch My PC tool to deploy Java and even Java updates to your client computers. If you don’t have access to third-party tools, you can manually download and package Java application in SCCM.

The Java application is compatible with both Windows 10 and Windows 11 OS. The Java SE version 16.01 and later is fully compatible with Windows 11. For manual installation of Java, refer to the guide on how to install the Java on Windows 11.

What is Java?

Java is a popular programming language and computing platform first developed and released by Sun Microsystems in 1995. There are plenty 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,is everywhere.

The free version of Java is available for download on Java website. However, you need to be aware of the Java licensing. The free version of Java license permits certain uses, such as personal use and development use, at no cost. Commercial license and support is available with a low-cost Java SE Subscription.

Download Java Offline Installer for SCCM

In this section, we will look at the steps to download the Java installer for Configuration Manager. Java installer is available for Windows, macOS, Linux and Solaris. There is no .msi installer available for Java, the offline installer is an executable file. There is a trick to get the Java MSI installer which is covered in the next section.

You must download the Java installer based on the version of operating systems that you have in your setup. If you have a mix of 32-bit and 64-bit OS, you must download both the installers, create 2 deployment types and deploy it using SCCM.

In case you have only 64-bit operating systems, then download only 64 Bit version of Java installer. You can download the latest version of Java offline installer from Java Site. In this article, we will deploy 64 bit of Java using Configuration Manager.

Download Java Offline Installer for SCCM
Download Java Offline Installer for SCCM

How to Get Java MSI Installer?

You can extract the .msi file out of Java.exe installer which will make it easy to populate install and uninstall commands automatically in Configuration Manager. To get the Java msi file you either need to install the java on one of the computers, or you need to run the Java executable (do not install the entire application).

When you install or run the executable, the Java msi file is extracted in the following path %userprofile%>appdata>Locallow>Oracle>Java. Copy the Java MSI installer to Sources folder or a shared folder that you typically use for storing the applications for Configuration Manager.

Get Java MSI Installer
Get Java MSI Installer

How to Deploy Java using Configuration Manager

Let’s see how to deploy Java using Configuration Manager. Launch the Configuration Manager console. Click on Software Library > Overview > Application Management. Right click Applications and click Create Application.

On the Create Application Wizard page, select Automatically detect information about this application from installation files. Specify the folder path of the Java MSI installer file and click Next.

How to deploy Java using Configuration Manager
How to Deploy Java using Configuration Manager

The Java MSI installer file will be read by Configuration Manager and the required information will be imported. The Product Code is one such important info that is populated from the Java msi file. Wait for the other information to be imported. Once you see it’s complete, click Next.

How to deploy Java using Configuration Manager
How to Deploy Java using Configuration Manager

On the General Information window, you must specify basics details about the Java application such as Name, Publisher etc. The Java application details that you specify here will appear in Software Center for users.

To install Java silently on the client computers, enter the below install command. If you are deploying a newer version of Java application, ensure you update the version of Java in below command. The /q parameter is essential if you want to install Java silently using Configuration Manager.

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

The install behavior should be set to install for system. Click Next.

How to deploy Java using Configuration Manager
How to Deploy Java using Configuration Manager

Review the Java application settings on Summary window and click Next. On the Completion window, click Close.

How to deploy Java using Configuration Manager
How to Deploy Java using Configuration Manager

Distribute the Java Application to Distribution Points

In Configuration Manager, when you create a new application or package, the content must be distributed to all the distribution points. If the content is not available on SCCM DP, the clients will fail to download the application or application gets stuck at downloading content in Software Center.

To distribute the Java application content to distribution points, right-click Java application in SCCM console and select the Distribute Content option. In the distribute content wizard, select the distribution points to which you want to send the content and complete the wizard.

In the event where the Java application fails to distribute to remote distribution point, you can always redistribute the failed content in SCCM.

Next, you must deploy the Java application to device collection. Choose a device collection to test the application installation, and then you can expand the deployment to a larger collection. Read the below helpful guides on creating device collections in Configuration Manager.

Test Java Application installation on Computers

After you have deployed the Java application to device collection in Configuration Manager, you can test the Java application installation on client computers. Log in to a client computer and launch the Software Center.

If you haven’t enabled the new Software Center yet, you can do so which gives you more customization and branding options. Take a look at the SCCM Software Center customization guide to explore all the customization options available for Software Center.

In the Software Center window, click the Applications tab and from the list of apps, select Java application and click Install. The client now downloads the Java application installation files from the distribution point associated with the boundary group and the installation begins.

You can monitor the AppEnforce.log on the client computer to monitor the progress of application installation. Any Java application installation failures along with errors will be logged in this file. For more information, take a look at all the SCCM log files.

As we have specified /q parameter in the Java application install command, the Java application installs silently and the user will not see any installation window.

How to deploy Java using Configuration Manager
Install Java Application from Software Center

We see the Java application has been installed successfully on the client computer. The status of the application shows as Installed. The Uninstall option also works fine if you decide to uninstall Java from Software Center. If you want to uninstall the Java app, just click on Uninstall.

How to deploy Java using Configuration Manager
Install Java Application from Software Center

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. This completes the Java application deployment in SCCM.

Monitor Java Application Installation
Monitor Java Application Installation

Read Next

Take a look at useful application deployment guides in Configuration Manager:

Share This Article
Prajwal Desai
Posted by Prajwal Desai
Follow:
Prajwal Desai is a Microsoft MVP in Intune and SCCM. He writes articles on SCCM, Intune, Windows 365, Windows Server, Windows 11, WordPress and other topics, with the goal of providing people with useful information.
27 Comments