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](https://i.stack.imgur.com/RforB.png)](https://i.stack.imgur.com/RforB.png)