# Android Programming for Beginners

**URL:** <https://discourse.processing.org/t/android-programming-for-beginners/46813>\
**Category:** Processing for Android\
**Created:** [July 28, 2025, 1:52pm UTC](https://discourse.processing.org/t/android-programming-for-beginners/46813 "2025-07-28T13:52:53Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [August 1, 2025, 5:02pm UTC](https://discourse.processing.org/t/android-programming-for-beginners/46813/16 "2025-08-01T17:02:33Z")

</div>

> [@stefterv](#):
>
> without looking deeper into it, this seems to me that the Android mode is somehow using the wrong JDK that is shipping with Processing.

That seems to be the case.

Minimal details on my end below.

Preferences.txt:

```auto
ANDROID_SDK=E:\android\sdk
JAVA_HOME=D:\Program_Portable\Processing-4.4.4\runtime
PATH=D:\Program_Portable\Processing-4.4.4\runtime\bin;E:\android\sdk\platform-tools;E:\android\sdk\cmdline-tools\latest;null
android.gradle_plugin=7.1.0
android.sdk.appcompat=1.6.0
android.sdk.ar=1.37.0
android.sdk.gvr=1.180.0
android.sdk.path=E:\android\sdk
android.sdk.play_services=18.0.0
android.sdk.target=33
android.sdk.target.wear=30
android.sdk.target.wear_arm=24
android.sdk.v4legacy=1.0.0
android.sdk.wear=2.9.0

The rest removed...

```

“Bare bones” batch file to launch Processing (4.4.4) to use with Android Mode (4.6.1):

`KISS Android Mode launch 1 0 2.bat`

```auto
REM Either of these JAVA_HOME paths work on my system:

set "JAVA_HOME=D:\Program_Portable\Processing-4.4.4\app\resources\jdk"
REM Alternatively, you can use this if it is available:
REM set "JAVA_HOME=C:\Users\GLV\AppData\Local\Programs\Eclipse Adoptium\jdk-17.0.15.6-hotspot"

set "PATH=%JAVA_HOME%\bin;%PATH%"

REM If Processing is not in your system PATH, modify the line below with the correct location.
REM This is where my processing.exe is located:
REM start D:\Program_Portable\Processing-4.4.4\processing.exe

REM If Processing is in your system PATH, you can simply run it with:
start processing.exe

pause

```

`:)`

---

_[View the full topic](https://discourse.processing.org/t/android-programming-for-beginners/46813)._
