Tiempo de lectura: 2 minutoshtml
Copy code
Reading Time: 2 minutes
Hello, today we are going to see how we can solve the error: “ERROR: JAVA_HOME is not set and no ‘java’ command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.”
What is happening is that we do not have the JAVA_HOME variable added to our Windows environment variables list.
To add it, first, we need to make sure we have Java installed.
To do that, we install the Java version we need. To do this, we go to the website and download it. In my case, we are going to install OPEN JDK: https://learn.microsoft.com/es-es/java/openjdk/download
Or on the official OpenJDK website: https://openjdk.org/