Doing Android development on OpenBSD
Develop Android application
55 Words, 0 Minute
07 Aug 2024
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