# Making Java a first-class AI citizen with Langchain4j

DevFeed: [Making Java a first-class AI citizen with Langchain4j](<https://devfeed.tech/articles/making-java-a-first-class-ai-citizen-with-langchain4j-23024.md>)

Original publisher: [Read original article](<https://www.javaadvent.com/2025/12/making-java-a-first-class-ai-citizen-with-langchain4j.html>)

Author: deors

Published: 2025-12-18T03:03:33Z

Content type: tutorial

Language: en

Sources: [Java Advent Calendar](<https://devfeed.tech/sources/java-advent-calendar.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [AI Development](<https://devfeed.tech/topics/ai-development.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [API](<https://devfeed.tech/topics/api.md>), [Resilience](<https://devfeed.tech/topics/resilience.md>), [Scalability](<https://devfeed.tech/topics/scalability.md>), [observability](<https://devfeed.tech/topics/observability.md>), [OpenAI](<https://devfeed.tech/topics/openai.md>), [Google AI](<https://devfeed.tech/topics/google-ai.md>), [Ollama](<https://devfeed.tech/topics/ollama.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-models](<https://devfeed.tech/tags/ai-models.md>), [api](<https://devfeed.tech/tags/api.md>), [java](<https://devfeed.tech/tags/java.md>), [langchain4j](<https://devfeed.tech/tags/langchain4j.md>), [ollama](<https://devfeed.tech/tags/ollama.md>), [openai](<https://devfeed.tech/tags/openai.md>), [vertex](<https://devfeed.tech/tags/vertex.md>)

## AI overview

This article introduces LangChain4j as a framework-agnostic Java library for building and running generative AI solutions. It explains its API, integration with Spring, Jakarta, Quarkus, Micronaut, and standalone applications, and support for cloud and local models, with examples based on version 0.36.2.

## Source excerpt

Introduction When the first technical solutions based on Artificial Intelligence began to be created, Python was the language and runtime platform of choice. It was not a total surprise as Python was the choice of the great majority of data scientists to analyse data, perform experiments and create AI models, so it was kind of [...] The post Making Java a first-class AI citizen with Langchain4j appeared first on JVM Advent.