Home > Software engineering >  Java JDK 18 is not installing windows 10
Java JDK 18 is not installing windows 10

Time:05-24

I'm trying to install JDK-18 on my windows machine, but the installer gets closed immediately. Previously I had installed Java 8(Update 311) for some reason and its installation file is missing now. What should I do to install JDK-18 freshly and remove Java 8 entirely?

enter image description here

CodePudding user response:

Remove Java 8 completely. Check https://java.com/ for help, it contains an uninstall tool.

Take Open JDK 18 from https://jdk.java.net/18/

It is preferable to take version 17 as it is a longterm supported version.

CodePudding user response:

You have not explained what installer you used, nor where you obtained it. So we cannot diagnose your problem.

Reviewing your logs may provide details about the failure of your installer.

I suggest you get a fresh installer from any of the several vendors. These include, in no particular order: Amazon, Adoptium, SAP, Azul Systems, Microsoft, Red Hat/IBM, Oracle, BellSoft, Pivotal, and more. Be sure to read their licensing terms; some are free-of-cost, some are not.

  • Be sure to get an installer appropriate to your host OS, Microsoft Windows apparently in your case. Be sure the version of your host OS is supported.
  • Be sure to use an installer appropriate to the CPU architecture of your host computer. For Windows that will be either 32-bit or 64-bit generations of either x86 or ARM.

So you have three factors to get right in choosing to download a JDK:
Host OS > x86 or ARM > 32-bit or 64-bit.

  •  Tags:  
  • java
  • Related