filmov
tv
{ How to define the JAVA_HOME Environment Variable } Android Applications on Unity or Android Studio

Показать описание
When trying to export a Unity project for Android I got an error saying that the JAVA_HOME variable was not defined or did not point to a valid path.
How to check if the JAVA_HOME environment variable is defined
1. In the Windows search bar type "cmd" and open the Windows console
2. Write "echo %JAVA_HOME%"
3. If the result is the Java JDK path, the environment variable is defined, if the result is "%JAVA_HOME%" the environment variable is not defined.
How to define the JAVA_HOME environment variable:
1. In the Windows search bar write "environment", enter the option "Edit the system environment variables".
2. In the pop-up window, click on the "Environment Variables" button.
3. In the "System Variables" window click on New.
4. In the pop-up window, in the name of the variable write "JAVA_HOME". In the value of the variable we give the installation path of the Java JDK, by default it is: "C:\Program Files\Java\jdk1.8.0_191", but it will depend on the version of the JDK and the language of the operating system. We give OK to everything and with that we define the environment variable JAVA_HOME.
____________________________________________________________
*LINKS*
____________________________________________________________
#EN
How to check if the JAVA_HOME environment variable is defined
1. In the Windows search bar type "cmd" and open the Windows console
2. Write "echo %JAVA_HOME%"
3. If the result is the Java JDK path, the environment variable is defined, if the result is "%JAVA_HOME%" the environment variable is not defined.
How to define the JAVA_HOME environment variable:
1. In the Windows search bar write "environment", enter the option "Edit the system environment variables".
2. In the pop-up window, click on the "Environment Variables" button.
3. In the "System Variables" window click on New.
4. In the pop-up window, in the name of the variable write "JAVA_HOME". In the value of the variable we give the installation path of the Java JDK, by default it is: "C:\Program Files\Java\jdk1.8.0_191", but it will depend on the version of the JDK and the language of the operating system. We give OK to everything and with that we define the environment variable JAVA_HOME.
____________________________________________________________
*LINKS*
____________________________________________________________
#EN
Комментарии