The Axiom

Java

6 pages

Anthropic Java SDK

The official Anthropic Java SDK wraps the Messages API with strongly-typed builders, synchronous and async clients, streaming support, and tool use — idiomatic Java without an LLM framework overhead.

javaanthropicsdkmessages-api

gRPC and Protobuf for Java AI Services

gRPC with Protobuf is the standard for high-performance AI service communication — bidirectional streaming makes it the right choice for LLM output streaming between Java services.

grpcprotobufjavastreaming

LangChain4j and Java AI Integration

LangChain4j is the primary Java LLM framework — annotation-driven AI Services, tool calling, RAG pipeline, and MCP integration; Java 21 virtual threads make parallel LLM calls practical without async complexity.

javalangchain4jspring-aillm

Maven and Gradle for Java AI Projects

Maven is the safe default for enterprise Java AI projects; Gradle with Kotlin DSL is faster and more expressive for greenfield. Both handle the multi-module layouts typical of LLM service projects.

javamavengradlebuild

Spring AI

Spring AI is the official Spring Boot LLM integration — auto-configured ChatClient, Advisors for RAG and memory, pgvector store, and function calling via Spring beans; the natural choice for teams already on Spring Boot.

spring-aijavaspring-bootllm

What is Java?

Java is a compiled, statically typed language that runs on the JVM — write once, run anywhere. It dominates enterprise backends, which is why most AI teams hit Java eventually when integrating with existing systems.

javajvmfundamentalsoop