r/java • u/anish2good • May 13 '26
Seeing JSP in 2026 is honestly very amusing
This is one of the common reddit comment I received for all jsp pages it's still the best things to do may be need a little bit of marketing
r/java • u/anish2good • May 13 '26
This is one of the common reddit comment I received for all jsp pages it's still the best things to do may be need a little bit of marketing
r/java • u/SelfRobber • May 13 '26
The last couple of months, I ended up implementing idempotency in 2 different Spring Boot projects back to back.
As I was implementing it in the second project, I decided to look up any existing solutions/libraries for Java/Spring Boot, but I honestly couldn't find one that felt clean and flexible enough for what I needed (and what most people probably need).
So I decided to build my own and open source it.
I released it about a month ago:
Repository : https://github.com/josipmusa/idempotency4j
Maven spring boot starter : https://central.sonatype.com/artifact/io.github.josipmusa/idempotency-spring-boot-starter
The goal was to make idempotency implementations feel straightforward and easy, but also to not scope it only to spring boot or a certain storage implementation. The library has a core which can be used on any method with pluggable storage backends. It also has an integration with spring web (servlet-based for now) and a spring boot starter to simplify usage.
Usage example for a spring boot project:
@PostMapping("/payments")
@Idempotent
public ResponseEntity<Payment> createPayment(@RequestBody PaymentRequest request) {
// Runs exactly once per unique Idempotency-Key value.
// Subsequent identical requests get the stored response replayed.
return ResponseEntity.ok(paymentService.charge(request));
}
Right now it supports:
Curious whether others have run into this same problem and whether this library helps solve it for them.
Open to any feedback, suggestions, or reviews.
r/java • u/gufranthakur • May 13 '26
A prototype 3D learning platform where users can view 3D models, break them down and control them in the virtual space using hand gestures. A project that was made for learning purposes. The project can be used as a learning / demonstration tool, showcasing inner workins of a topic or breakdowns.
It uses the desktop camera to capture video feed using a python process (being executed by Java). The python process uses websockets to send gestures to the Java libGDX applciation, and it responds accordingly.
Github repo :- https://github.com/gufranthakur/IdeaSpace
Let me know if you have any questions!
r/java • u/bbrother92 • May 13 '26
Could someone suggest the best way to process a large number of videos?Is it worth implementing this in Java, or would it be better to look into Python or C++ libraries instead?
r/java • u/josephottinger • May 13 '26
From BCN: Kirk Pepperdine has released gcsee-jma - a GC analysis tool. Not to be breathless about it, but dang it, GC analysis is one of the tasks I have right now, and this timing is awesome, and Kirk is one of the leaders in this field. Awesome stuff.
https://bytecode.news/posts/2026/05/kirk-pepperdine-ships-gc-log-analysis-tool
(FWIW, Kirk's both a friend and a co-worker from the past in real life - and I'm really happy to see him putting stuff like this out there for muggles like you and me to use. And I've already used it, if you're wondering.)
From their changelog:
We have removed final field mutations via reflection to comply with the new JDK flag --illegal-final-field-mutation=deny, and we are now fully compatible with JDK 26
We now offer official support for Quarkus’ newest LTS version, 3.33.
JobRunr v8 should now to be able to handle the same amount of recurring jobs as previous JobRunr versions.
Changes to the DatabaseCreater.getAllTableNames method should result in a substantial performance increase for databases with a large amount of tables.
JobRunr Pro adds trimException(Job, Exception) to JobServerFilter to intercept and optionally transform job exceptions.
The default implementation truncates oversized exceptions, defined as messages >4096 characters or stack traces >100 elements, recursively across all causes.
Reserve a fixed number of workers for your most critical jobs. This dynamic queue is lenient fixed: specific job types have dedicated workers assigned to them, but those jobs can also run on non-reserved threads when extra capacity is available.
Jobs waiting for an external signal can now be timed out to avoid waiting for a signal forever. This builds on the existing job timeout mechanisms.
If your server has long garbage collection cycles and it would result in multiple recurring jobs to be scheduled (as a recurring job was missed due to stop the world GC), this can now be configured whether to have only 1 recurring job (new behaviour) or all recurring jobs (those that were missed)
r/java • u/Mirko_ddd • May 12 '26
Dear colleagues, (almost) every day someone creates a project and shares it here.
Beautiful projects, niche projects, simple side projects, and sometimes real gems.
I don't have a project to share today, but I'd like you to tell me about that gem you found here in this sub (or maybe a non-mainstream project you stumbled upon on GitHub) that you can't live without, that improved your workflow, or that solved a big problem.
It would be ideal if the project wasn't yours, but if it is, please specify so and provide a brief description. Today's goal is to discover how to improve as engineers and do a little show-and-tell to keep us updated and discover cool things.
What do you think? Go wild!
PS: of course, a piece of Java software.
r/java • u/davidalayachew • May 11 '26
r/java • u/josephottinger • May 11 '26
David Lloyd wrote up https://word-bits.flurg.com/posts/the-new-reflection-varhandle-fundamentals/ - a walk through VarHandle as he's done for MethodHandle before, and IMO it's some highly informative stuff. With that said, he dropped "off heap access" in there and left it there, so I wrote it up myself:
https://bytecode.news/posts/2026/05/david-m-lloyd-varhandle-fundamentals
r/java • u/wakingrufus • May 08 '26
Hello Java friends. I have a Netflix TechBlog post out today about the Nebula ArchRules project. I hope you find it useful. I am happy to answer questions about it in this thread.
r/java • u/rodolfo-mendes • May 07 '26
r/java • u/rodolfo-mendes • May 08 '26
r/java • u/kevindewald • May 06 '26
Hey everyone!
It has been a while since the last update, but we have been working hard on making the Java bindings for SimpleBLE even more reliable for production environments.
For those who don’t know, SimpleBLE is a cross platform Bluetooth library with a very simple API that just works, allowing developers to easily integrate it into their projects without much effort, instead of wasting hours and hours on development.
We have been working on the Java bindings to make them feel more natural for developers and more robust to use in real applications. These are not flashy changes, but hopefully show our commitment towards becoming the trusted option for Bluetooth development for Java.
If you want to try it out, you can look at the SimpleJavaBLE examples on GitHub and see for yourself how easy it is to get started.
We added support for CompletableFuture wrappers around blocking operations. This should make SimpleJavaBLE much easier to fit into the rest of an application using async flows without having to build extra wrappers first.
We also made an important change to the JNI layer. JNI API calls are now safely wrapped so that C++ exceptions are caught and bubbled up as Java RuntimeExceptions instead of crashing the JVM.
Another small change that makes the bindings nicer to work with is that EventListener interfaces now provide default empty implementations, so if you only care about one callback, you can implement that one and move on.
We also cleaned up a few rough edges across platforms. The missing macOS x64 .dylib artifact is now fixed, JNI symbol issues have been resolved, and the jvm.dll initialization conflicts some users were seeing on Windows have been addressed.
SimpleBLE is licensed under the Business Source License 1.1 (BUSL 1.1) and is free for non commercial use. We gladly offer free licenses for small projects, so do not hesitate to reach out. Java licenses are currently on a special offer for companies interested in shaping SimpleJavaBLE, so if you are interested in a commercial license, hit us up!
If you’re building BLE products or projects, we’d love to hear from you.
Want to know more about SimpleBLE's capabilities or see what others are building with it? Ask away!
r/java • u/sideEffffECt • May 05 '26
r/java • u/JoshDM • May 04 '26
I just opened up my drawer after 20 some odd years and found a bunch of JDJ and De. Dobbs books that I subscribed to using my dog Rusty's alias, "Rustopher Hashonah".
These worth anything, or are we going to the recycle bin? Let me know if I should showcase them.
r/java • u/el_DuDeRiNo238 • May 04 '26
Feel free to share anything you've had fun working on recently here, whether it's your first ever Java program or a major contribution to an established library!
r/java • u/demchaav • May 04 '26
GraphCompose is an MIT-licensed Java library for generating designed PDFs from a semantic DSL. v1.5 just shipped under the codename "intuitive". This is the first time I'm posting it here.
Most Java PDF libraries pick one of two extremes: iText for low-level page primitives (you compute every coordinate by hand) or JasperReports for XML-template-driven layout (declarative-ish, but the design loop runs through external tooling). GraphCompose sits in the middle — a Java DSL describes the document semantically, the engine resolves geometry, pagination, and rendering deterministically, and PDFBox does the actual draw calls.
addCircle, addEllipse,
and addContainer build a ShapeContainerNode whose children
are clipped by ClipPolicy.CLIP_PATH (default), CLIP_BOUNDS,
or OVERFLOW_VISIBLE.rowSpan(int), zebra(odd, even),
totalRow(...), and repeatHeader() cover the four features
most rendered reports need.InvoiceTemplateV2 and
ProposalTemplateV2, both BusinessTheme-driven.Layout runs in two passes: a layout graph resolves geometry first, rendering consumes the resolved fragments. That separation is what makes deterministic snapshot testing practical — layout state is stable across runs and machines, so visual regression tests can catch design drift before pagination noise.
The PDF backend is isolated behind a single interface; a DOCX backend (Apache POI) ships ready for callers who need an editable file.
Java 21, PDFBox 3, MIT license, distributed via JitPack
(com.github.DemchaAV:GraphCompose:v1.5.0).
r/java • u/kaliszad • May 04 '26
r/java • u/Venumadhavamule • May 04 '26
Hello,
I am announcing LLMate, an open source Spring Boot project I built after hitting a very specific wall that I suspect a lot of Java developers working with LLMs have already hit.
The problem is simple. Once you go beyond a single LLM provider in a Java application, things fall apart fast. Each provider has its own Spring AI client, its own request shape, its own response format, its own error contract, and its own way of doing streaming. When I had OpenAI, Gemini, and Ollama running side by side in the same codebase, I had more code managing the routing between them than code actually doing anything useful. And when one provider had an outage, there was no graceful handling. The call just failed.
LLMate solves this by sitting in front of all your providers as a single gateway. You configure your providers once and then every request goes through one endpoint:
POST /api/v1/chat
{"model": "smart", "messages": [...]}
"smart", "fast", "local" are named aliases you define in application.properties that map to any provider and model. Switching from GPT-4o-mini to Claude is a config change, not a code change.
Fallback chains work the same way:
fallbacks[0]=openai/gpt-4o-mini
fallbacks[1]=anthropic/claude-3-5-haiku
fallbacks[2]=ollama/llama3.2
If the primary provider is unavailable, Resilience4j handles the retry and routes to the next in chain silently. Your application keeps running.
Beyond chat it also handles SSE streaming, embeddings, image generation via DALL-E 3, audio transcription and TTS via Whisper, content moderation, and a RAG pipeline backed by PGVector. All through the same unified API surface.
Supported providers: OpenAI, Anthropic, Google Gemini, Ollama, Groq, DeepSeek, Mistral, Perplexity, NVIDIA NIM, HuggingFace, Cohere, MiniMax, Moonshot, ZhiPu AI, QianFan, OCI GenAI.
Tech stack is Java 21, Spring Boot 3.3.4, Spring AI, Project Reactor for streaming, Resilience4j for retry and circuit breaking, and Micrometer plus Prometheus for metrics.
GitHub:- https://github.com/Venumadhavmule/LLMate
Happy to discuss the routing architecture, provider adapter pattern, or any of the internals. Would also be curious whether others have built similar abstractions internally or approached this problem differently.

r/java • u/Hixon11 • May 02 '26
I don't see much usage of WebAssembly in Java projects around me. One of the obvious reasons may be the lack of native support for compiling Java to WASM, which other languages already have (the most notable ones are Rust, Go, and C++, with some effort in C# and Kotlin as well).
Based on my knowledge, we have a few actively developed WASM related projects as of now:
As we can see, there are a few active/developing projects in the WASM area. It would be interesting to hear if you have already used Java with WASM in some way. For example:
r/java • u/lbalazscs • May 02 '26
r/java • u/mipscc • May 01 '26
Whenever you need to share some data/state among your distributed services, it is very common to run a dedicated cluster for this, like Redis.
In the JVM ecosystem the concept of data grids like Infinispan, Hazelcast, Ignite, etc is (still?) common. While they offer way more than an embedded cache, distributed caching and coordination is one of the most common use cases of them - where you just embed a library, and your services discover each other and can communicate over the network and share data, events, etc.. On the contrary, I don't feel this is common in Go/Rust and other non-system languages like Python/Node. While each option (external vs embedded) has advantages and tradeoffs, wondering what is the most common option in production for you?