I am using oracle JDK 17 in my cloud desktop and it is upgrading to oracle JDK 18 automatically. Since we are using Java 17 in our project, I had to reinstall the JDK 17 on every time it is upgrading to JDK 18. I want to turn off the auto update of Java. is there a way to turn off the Auto upgrade of Java 17 to 18.
Any suggestions would be highly appreciated.
Thank You.
You need to reinstall Oracle JDK-17 but with an additional configuration file.
Create a file named
config.txt
.In that file write this line:
cd
command.installer.exe INSTALLCFG=config.txt
, NOTE:installer.exe
is the installer file which you have downloadedHere's more details from official oracle docs