![]() If OpenJDK path is printed then everything went correctly and JAVA_HOME is set. Back in Terminal execute source ~/.bash_profile and then echo $JAVA_HOME. Press CTRL+ X then agree to save changes by pressing Y and finally hit ENTER 6. ![]() The complete line should look like this: export JAVA_HOME=/Applications/Unity/Hub/Editor/2019.3.6f1/PlaybackEngines/AndroidPlayer/OpenJDK 5. In nano editor type in export JAVA_HOME= and paste your path to OpenJDK instead of. Copy OpenJDK path by opening Unity Editor and navigating to Unity > Preferences > External Tools > OpenJDK > Copy Path 3. ![]() If JAVAHOME is set to an invalid folder, the javahome command won't work at all. Noe, if if the JAVAHOME environment variable is already set to a valid JDK that is all it will return, it will ignore the -v parameter. Check if you included OpenJDK in your Unity installation through Unity Hub(Under Installs > your desired Unity Editor > menu > Add Modules > expand Android Build Support) 2. Note that macOS Big Sur changed the behaviour of the javahome command. This is due to Unity not setting JAVA_HOME environment variable automatically. Once you set up your Unity editor you may encounter this error message in Terminal: No Java runtime present, try - request to install.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |