Doing Android development on OpenBSD


Android Development

Installing JDK

The following command installs the package jdk.

Note: the pkg_info command lists the available jdk versions.

# pkg_info -Q jdk
# pkg_add jdk-21.0.2.13.1v0

Preparing environment

Once the JDK is installed, the $PATH and $JAVA_HOME environment variable must be set.

Note: the pack depends on your JDK version.

export PATH="$PATH:/usr/local/jdk-21/bin"
export JAVA_HOME=/usr/local/jdk-21