Java
Everything Java
- Tools and tips: Tools and tips for your setup
- About me: About me
Get started
- AI CLI — Building a Production Newsletter Engine with Java, Spring Boot & LangChain4j: A deep dive into AI CLI, a Java 21 terminal app built with Spring Boot, PicoCLI, and LangChain4j that transforms prompt files into fully automated newsletters using multi-agent pipelines, RAG, tool calling, and zero-cost testing strategies.
- Road to Native Image (Spring Boot 3+): Guide to migrate Spring Boot 3 to GraalVM Native Image covering upgrades AOT Maven setup native profile agent metadata debugging reflection resources JNI XML JAXB Netty DNS and build optimizations
- Native Image (Spring Boot 3+) - Paketo Buildpacks Route: Guide to migrate Spring Boot to GraalVM Native Image using Paketo Buildpacks, covering upgrades, AOT setup, buildpack configuration, trace agent, reachability metadata, reflection and resource hints, and debugging runtime issues.
- Build a native AWS Lambda with Java (GraalVM + AWS Lambda + Micronaut 4 - SQS Queue Trigger): Guide to build a native Java AWS Lambda using GraalVM and Micronaut with SQS trigger, covering project generation, SQS handler code, Docker native build, deployment, testing, and IAM permissions.
- GraalVM with AWS Lambda - Starter: Guide to deploy GraalVM native Java on AWS Lambda with a custom AL2 runtime avoiding the JVM. Build with Docker, compile via Gradle, package bootstrap and binary, upload zip.
- Profile Guided Optimization: Guide to GraalVM Enterprise PGO for native images instrument build, run workloads to collect profile, rebuild using it. Expects longer builds, higher memory, larger binaries, unsuitable for iterative development.
- Tracing in native image - Datadog: Guide to enable Datadog tracing in Spring Boot native image install and configure Datadog Agent add Java agent in native build configure metrics build run and verify traces in Datadog
- Easy RAG - Using Embeddings in LangChain4j to improve LLM responses: Guide to use LangChain4j embeddings embedding CSV summaries of articles enabling RAG for WriterSide topic generation improving context index structure via OpenAI or Gemini configuration and Java service code
- JBang Meets Spring Boot & LangChain4j: A Powerhouse for Java Scripting and AI Pipelines: Demonstrates Java scripting with JBang and Spring Boot using LangChain4j and DeepSeek to refine Markdown, covering setup, multi file project, runners for single or all files, and extensible AI pipelines.
- Simple OpenAI Whisper Java Client: Micronaut CLI whisperer records until Enter sends WAV to OpenAI Whisper prints and copies transcript integrates pbcopy builds native with GraalVM uses Java Sound HttpClient supports language prompt overrides macOS
- Building a Java Lexer for the Monkey Programming Language: Guide to building a Java lexer for Monkey language using Spliterator and PeekingIterator defining token types and tokens implementing tryAdvance testing via JBang showing example output and linking to repository
- Ollama on Google Colab with Free GPU: Guide to run Ollama on Google Colab with a free T4 GPU, exposing the instance via ngrok, pulling models like Granite and Nomic, and using it as a remote LLM endpoint.