"java" is not recognised as a command, executable or commands folder

this message keeps coming up while im trying to run a local matc, anyone knows why?

Do you have java 10 installed? It may also be an issue with your language settings, i’m not sure if that causes issues but I have not seen it before so I wouldnt rule it out

late reply, how do I install java 10? I tried looking around and only found this page
https://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html