This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new bf3059dee6 doc(android): how to set java home path on mac (#1420)
bf3059dee6 is described below

commit bf3059dee6bc58bef6639383b28210f595a6162f
Author: Manuel Beck <manuelbec...@outlook.de>
AuthorDate: Mon Jun 23 14:01:03 2025 +0200

    doc(android): how to set java home path on mac (#1420)
---
 www/docs/en/12.x-2025.01/guide/platforms/android/index.md | 14 ++++++++++++++
 www/docs/en/dev/guide/platforms/android/index.md          | 14 ++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/www/docs/en/12.x-2025.01/guide/platforms/android/index.md 
b/www/docs/en/12.x-2025.01/guide/platforms/android/index.md
index 853b71e5e0..a74c673111 100644
--- a/www/docs/en/12.x-2025.01/guide/platforms/android/index.md
+++ b/www/docs/en/12.x-2025.01/guide/platforms/android/index.md
@@ -297,6 +297,8 @@ _**Note:** The directories above are generally located in 
the Android SDK ROOT._
 On Linux or macOS versions prior to Catalina, use any text editor to create or 
modify the `~/.bash_profile` file.
 <br>On macOS Catalina and newer, create or modify the `~/.zprofile` file, as 
the default shell has changed.
 
+##### ANDROID_HOME
+
 Add the following line to your shell's profile to set up the `ANDROID_HOME` 
environment variable.
 
 **Linux:**
@@ -322,6 +324,18 @@ export PATH=$PATH:$ANDROID_HOME/build-tools/
 export PATH=$PATH:$ANDROID_HOME/emulator/
 ```
 
+#### JAVA_HOME
+
+**macOS:**
+
+When you installed the Java Development Kit, as described in this guide, you 
can get the java home path by executing:
+
+`echo $(/usr/libexec/java_home)`
+
+Set `JAVA_HOME` like you already did it for `ANDROID_HOME`.
+
+### Reload Terminal
+
 Reload your terminal to see this change reflected or run the following command:
 
 **Linux and macOS older then Catalina:**
diff --git a/www/docs/en/dev/guide/platforms/android/index.md 
b/www/docs/en/dev/guide/platforms/android/index.md
index 9c9ca707a0..e8fd35213c 100644
--- a/www/docs/en/dev/guide/platforms/android/index.md
+++ b/www/docs/en/dev/guide/platforms/android/index.md
@@ -315,6 +315,8 @@ _**Note:** The directories above are generally located in 
the Android SDK ROOT._
 On Linux or macOS versions prior to Catalina, use any text editor to create or 
modify the `~/.bash_profile` file.
 <br>On macOS Catalina and newer, create or modify the `~/.zprofile` file, as 
the default shell has changed.
 
+##### ANDROID_HOME
+
 Add the following line to your shell's profile to set up the `ANDROID_HOME` 
environment variable.
 
 **Linux:**
@@ -340,6 +342,18 @@ export PATH=$PATH:$ANDROID_HOME/build-tools/
 export PATH=$PATH:$ANDROID_HOME/emulator/
 ```
 
+#### JAVA_HOME
+
+**macOS:**
+
+When you installed the Java Development Kit, as described in this guide, you 
can get the java home path by executing:
+
+`echo $(/usr/libexec/java_home)`
+
+Set `JAVA_HOME` like you already did it for `ANDROID_HOME`.
+
+### Reload Terminal
+
 Reload your terminal to see this change reflected or run the following command:
 
 **Linux and macOS older then Catalina:**


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to