Hey there, fellow coder! 😊 Ever typed java -version in your Command Prompt only to be hit with a frustrating "java is not recognized as an internal or external command"? You're not alone—this common ...
now click on the button that says Environment Variables... now you are gone see this window popup on the System variables look for JAVA_HOME if its there edit it and point to a JDK 17 install now if ...
$ mvn The JAVA_HOME environment variable is not defined correctly, this environment variable is needed to run this program.
I'm writing a simple script that will allow me to switch jdks easily so I have JAVA_HOME in my .profile set to something initailly and then I want to run the script so that it changes teh JAVA_HOME to ...