Build and Deploy Java AI Agents with Google ADK A developer built and deployed a Java AI agent using the Google Agent Development Kit (ADK) on Debian 13. The agent, which provides time and weather information, was compiled with Java 25 and deployed to Google Cloud Run. The complete project is available in a sample repository. Debian 13 “Trixie” provides a clean, stable base for Java agent development. On a workstation, virtual machine, or cloud instance, you can compile Java projects, run local web servers, use the Google Agent Development Kit ADK Dev UI, and deploy an agent to Google Cloud Run. This guide builds a small ADK agent with time and weather tools. The complete project is available in the sample repository https://github.com/xbill9/adk-hello-world-java . Start with a Debian 13 installation and a user account that can run sudo . Confirm the operating-system version: . /etc/os-release printf '%s %s %s \n' "$NAME" "$VERSION ID" "$VERSION CODENAME" Update the package index and install the base development tools: sudo apt-get update sudo apt-get install -y curl git maven unzip zip This project compiles with Java 25. One convenient way to install a matching JDK is SDKMAN https://sdkman.io/install/ : curl -s "https://get.sdkman.io" | bash source "$HOME/.sdkman/bin/sdkman-init.sh" sdk list java Select an available Java 25 identifier from the list and install it for example, 25-open : sdk install java 25-open java --version mvn --version Both commands should report Java 25, and Maven must be version 3.6.3 or newer. The build enforces this minimum Maven version. Add Google's Debian package repository: sudo apt-get install -y apt-transport-https ca-certificates gnupg curl https://packages.cloud.google.com/apt/doc/apt-key.gpg \ | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg echo "deb signed-by=/usr/share/keyrings/cloud.google.gpg https://packages.cloud.google.com/apt cloud-sdk main" \ | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list sudo apt-get update sudo apt-get install -y google-cloud-cli Verify the installation: gcloud version The Google Cloud CLI is required for Vertex AI authentication and Cloud Run deployment. It is not required if you only run the agent locally with a Gemini API key. git clone https://github.com/xbill9/adk-hello-world-java cd adk-hello-world-java The agent lives at src/main/java/agents/multitool/MultiToolAgent.java . Its public ROOT AGENT field lets the ADK Dev UI discover it: public static final BaseAgent ROOT AGENT = initAgent ; public static BaseAgent initAgent { return LlmAgent.builder .name "multi tool agent" .model "gemini-2.5-flash" .description "Agent to answer questions about the time and weather in a city." .tools FunctionTool.create MultiToolAgent.class, "getCurrentTime" , FunctionTool.create MultiToolAgent.class, "getWeather" .build ; } The tools return structured maps with a status and a human-readable report . The time tool uses IANA time zones and includes aliases for cities such as San Francisco, Beijing, and Mumbai. This sample uses ADK for Java 1.7.0 , the latest release available from Maven Central as of July 27, 2026. Both runtime dependencies use the same property so the core library and Dev UI cannot drift to different versions: