i'm installing the JDK in my computer Monterey 12.6.5, the installer runs ok and says its finished but when i go to my terminal and write java ~version and it says zsh: no such user or named directory: version
and then i try to install the ambient and doesn't work either. Any thoughts on what may be happening?
I downloading the installer from the oracle page, and i'm sure its the correct one. Also the installer let me run it again and again without saying that's already installed or something like that.
I had the JDK installed a while ago and i uninstalled now i cant bring it back.
Thanks for your help.