Support Forum: Get Support for Patch My PC Products and Services

Commercial Products: Support for Our Enterprise Product for Microsoft ConfigMgr and Intune => Commercial/Paid Products: Support and General Questions (ConfigMgr and Intune) => Topic started by: Robert Stein on May 21, 2024, 09:52:01 AM

Title: Java SE development kit/OpenJDK installing latest
Post by: Robert Stein on May 21, 2024, 09:52:01 AM
We just started patching JDKs. Some users and app owners are reporting being switch from an LTS release such as 11 or 17 to 22 (or a newer LTS release such as 21).

One app owner admitted to telling users to remove the version folder and install to C:\Program Files\Eclipse Adoptium\jdk\.  Would this type of customization of install location cause detection to see latest release instead of a targeted LTS release?
Title: Re: Java SE development kit/OpenJDK installing latest
Post by: Kyle (Patch My PC) on May 21, 2024, 10:21:18 AM
Hello there,

The Java content in the catalog includes pre-defined scripts that handle the removal of previous versions before installing the deployed version. You can view these scripts by right-clicking on the content in the catalog. Depending upon what version/catalog entry you are Publishing and deploying, the "latest" catalog entry will remove any/all versions and install the latest version (ver. 22 currently). The version-specific entries (8/17/11/21/etc.) will only remove previous versions of what is selected, IE., the pre-defined script for ver. 8 will only remove the older version(s) of 8 and install the latest version of 8, and so on.

Hopefully, that clarifies the Java content, but if you have further questions, please let us know.
Title: Re: Java SE development kit/OpenJDK installing latest
Post by: Robert Stein on May 24, 2024, 03:58:10 PM
If I want devices to stay on the same LTS release (11, 17, 21) is the solution to only deploy those releases and not deploy Latest?
Title: Re: Java SE development kit/OpenJDK installing latest
Post by: Pesmaa on June 17, 2024, 05:58:25 AM
Quote from: Kyle (Patch My PC) on May 21, 2024, 10:21:18 AMHello there,

The Java content in the catalog includes pre-defined scripts that handle the removal of previous versions before installing the deployed version. You can view these scripts by right-clicking on the content in the catalog. Depending upon what version/catalog entry you are Publishing and deploying, the "latest" catalog entry will remove any/all versions and install the latest version (ver. 22 currently). The version-specific entries (8/17/11/21/etc.) will only remove previous versions of what is selected, IE., the pre-defined script for ver. 8 will only remove the older version(s) of 8 and install the latest version of 8, and so on.

Hopefully, that clarifies the Java content, but if you have further questions, please let us know.

Can I update Java to a specific version without uninstalling previous installed versions? And what steps need to be taken with scripts for this?
Title: Re: Java SE development kit/OpenJDK installing latest
Post by: amerement on June 21, 2024, 06:08:53 AM
Quote from: Pesmaa on June 17, 2024, 05:58:25 AM
Quote from: Kyle (Patch My PC) on May 21, 2024, 10:21:18 AMHello there,

The Java content in the catalog includes pre-defined scripts that handle the removal of previous versions before installing the deployed version. You can view these scripts by right-clicking on the content in the catalog. Depending upon what version/catalog entry you are Publishing and deploying, the "latest" catalog entry will remove any/all versions and install the latest version (ver. 22 currently). Users are advised not to delete folders themselves, but to stick to standard update procedures. Or try contacting Dashdevs (https://dashdevs.com/fintech-software-development/) company who specialize in fintech software development. If your field is related to finance, you need to ensure the stability and security of the system. The version-specific entries (8/17/11/21/etc.) will only remove previous versions of what is selected, IE., the pre-defined script for ver. 8 will only remove the older version(s) of 8 and install the latest version of 8, and so on.

Hopefully, that clarifies the Java content, but if you have further questions, please let us know.

Can I update Java to a specific version without uninstalling previous installed versions? And what steps need to be taken with scripts for this?

If I'm not mistaken, you need to update java_home and path to point to the new version of java
Title: Re: Java SE development kit/OpenJDK installing latest
Post by: CharlesMullen on October 22, 2024, 06:17:53 AM
thanks