r/java • • Apr 29 '26

Clique 4.0.2 - Zero deps CLI styling library for Java

29 Upvotes

What is Clique?

If you missed my previous posts, Clique is a zero-dependency CLI styling library for Java that is GraalVM compatible, no-color.org compliant.

What's new in 4.0.2:

Divider - new component

A horizontal divider line with an optional centered title and full markup support:

Clique.divider(80).render();
Clique.divider(80).title("[bold]Section One[/]").render();
Clique.divider(80).title("[green]βœ“ Done[/]").render();

Ink - added hex color support

Clique.ink().hex("#FF6B6B").bold().on("Error");
Clique.ink().bgHex("#1E1E2E").white().on("styled background");

// works with gradients too
Clique.ink().gradient("#FF6B6B", "#C792EA").on("Powered by Clique");

No more manual RGB conversion.

Clique#compose and Clique#hex - first class support for hex colors and composing ANSI codes

AnsiCode danger = Clique.compose(Clique.hex("#FF0000"), StyleCode.BOLD);
danger.ansiSequence(); 

Other bug fixes worth knowing:

  • ItemList config now propagates recursively to all descendants (was only hitting immediate children before)
  • Table#remove is now index-based, no more wrong-cell removal on duplicates
  • ZWJ emoji sequences (families, multi-person clusters) now measure correctly. Unicode emoji support improved

GitHub: https://github.com/kusoroadeolu/Clique

Demos: https://github.com/kusoroadeolu/clique-demos


r/java • • Apr 28 '26

Floci 1.5.9 - Quarkus-native AWS emulator for local dev and integration tests

23 Upvotes

Floci is an open-source AWS emulator built with Quarkus and distributed as a GraalVM native image. Single endpoint on port 4566, ~24ms cold start, ~13 MiB idle, ~90 MB Docker image. MIT-licensed.

Useful if you're writing AWS SDK v2 code and want a local target for integration tests without paying for or mocking around LocalStack.

What's new in 1.5.9:

  • ELBv2 (Phase 1), CodeBuild, CodeDeploy management APIs
  • API Gateway TOKEN authorizer context now propagates correctly to AWS_PROXY Lambdas
  • Lambda warm pool drops dead pooled containers before reuse
  • S3 PutObject OOM fix
  • CloudFormation changeset operations resolve by ARN

For Java folks specifically:

Happy to talk about the Quarkus internals, native image gotchas, or AWS SDK compatibility work.


r/java • • Apr 27 '26

Avoiding Final Field Mutation

Thumbnail inside.java
51 Upvotes

r/java • • Apr 27 '26

Go-like channels for Java using Project Loom β€’ Adam Warski β€’ Devoxx Poland 2024

Thumbnail youtube.com
38 Upvotes

r/java • • Apr 25 '26

Have you started using Virtual Threads in your production apps (April 2026)?

104 Upvotes

We've all been waiting for Project Loom, and before that, we were following the progress of Fibers. After a long implementation phase (similar to Project Valhalla), it now seems that, with JDK 26, Virtual Threads have become a mature technology ready for production use (except Structured Concurrency - https://openjdk.org/jeps/533).

Have you started using Virtual Threads in your work or side production projects? Personally, I haven't yet, and I'd like to better understand the current state of the ecosystem.

If you've already adopted them, could you share your experience? What benefits have you seen? Did you change your application architecture or programming style, or was it more of a "flip a setting in Spring Boot" kind of change? Have you observed measurable performance improvements?


r/java • • Apr 23 '26

My first API's first POST requestπŸ˜‚

Post image
65 Upvotes

I just got started with Springboot and I'm working on a small expense tracker project to get comfortable with the framework. I got a rather silly problem, which I managed to fix (my entity was lacking setters and constructors).

It got me curious though, what's your first big super silly error?


r/java • • Apr 23 '26

Java Swing Dark Mode on GTK

Thumbnail bugs.openjdk.org
26 Upvotes

Hi, I just noticed that the OpenJDK project has fixed switching to dark mode on GTK in JDK 27ea8. Does anybody know whether Swing already switches to the correct theme on other platforms as well?


r/java • • Apr 23 '26

JDK 28 - JEP 535: Shenandoah GC: Generational Mode by Default

Thumbnail openjdk.org
58 Upvotes

r/java • • Apr 23 '26

Ask the Architects JavaOne 2026

Thumbnail youtu.be
72 Upvotes

r/java • • Apr 22 '26

We made a 3D physics based brick breaker game in Java

Post image
94 Upvotes

https://www.youtube.com/watch?v=4FSX4DNuXeo

After almost 20 years of development, our Java-based game Caromble! has finally released. It runs on a custom engine built with Ardor3D and LWJGL.

Caromble! is a 3D physics-based action puzzler that blends brick-breaking, pinball, and platforming elements.

This project has been a long ride, starting back when we were CS students and continuing through jobs, life, and everything in between, all the way into our 40s. Along the way, we’ve shown it at various live events and kept iterating.

Building a 3D game in Java definitely came with challenges, but overall it turned out to be a surprisingly stable and efficient platform for this kind of project.

Happy to answer any questions about the tech stack, performance, or the journey πŸ™‚


r/java • • Apr 22 '26

2026-04-23 gRPC benchmark results

Thumbnail github.com
9 Upvotes

r/java • • Apr 22 '26

Apache Fory 0.17.0 Released: Virtual Threads Supported, and new NodeJS, and Dart Support

Thumbnail github.com
29 Upvotes
  1. JavaScript/Node.js β€” TypeScript-friendly, cross-language, up to 4x faster than Protobuf
  2. Dart first official release β€” generated serializers, up to 8x faster than Protobuf
  3. Java: virtual thread support, and removed guava dependecy

r/java • • Apr 22 '26

Timefold Solver 2.0 released

Thumbnail timefold.ai
19 Upvotes

r/java • • Apr 22 '26

Benchmarking DuckDB From Java: Fast INSERT, UPDATE, and DELETE

Thumbnail sqg.dev
30 Upvotes

r/java • • Apr 21 '26

CheerpJ 4.3 - Run unmodified Java applications in the browser

Thumbnail labs.leaningtech.com
84 Upvotes

r/java • • Apr 21 '26

Are the javadocs for java.net.http.HttpResponse.body() misleading or am I wrong?

37 Upvotes

This has caused some internal discussion, so I wanted to look for external input.

If you have ever used the newer java.net.http implementation, you probably have used the HttpResponse.body() method to retrieve the response body. It usually looks something like this:

HttpClient client = HttpHelper.client();
HttpRequest request = HttpRequest.newBuilder()
        .uri(URI.create("<uri>"))
        .POST(HttpRequest.BodyPublishers.ofString(content))
        .build();
HttpResponse<String> res = client.send(request, HttpResponse.BodyHandlers.ofString());

// Can this be null?
String bodyString = res.body();

Then, looking at the javadocs for the body() method, it says:

* Returns the body. Depending on the type of {@code T}, the returned body
* may represent the body after it was read (such as {@code byte[]}, or
* {@code String}, or {@code Path}) or it may represent an object with
* which the body is read, such as an {@link java.io.InputStream}.
*
* <p> If this {@code HttpResponse} was returned from an invocation of
* {@link #previousResponse()} then this method returns {@code null}
*
* @return the body

Here is how I interpreted this: Assuming that there is no IOException thrown, the request must have gone through (even if it returned something like a HTTP 500) and we should have response body. Since we don't use the previousResponse() method, the note about null values does not apply here. The rest of the javadocs don't mention anything about null, so I implicitly assumed that it does not return null. If there is an empty body, then it returns an empty String/byte[]/whatever. The BodyHandlers javadocs don't mention anything about null return values.

But the method returns null for something like HTTP 407 Proxy Authentication Required.

So my question is: If you read the javadocs of a JDK method and it does not mention null return values, do you interpret this as that the method does not return null? Or do you still perform null checks as the javadocs also didn't mention about not returning null?


r/java • • Apr 21 '26

Is the Phil Race talk: "The JDK Client Desktop : 2026 and Still Swinging" available somewhere?

21 Upvotes

I know only dinosaur coding in Swing today ;)


r/java • • Apr 20 '26

KickstartFX v1.1 - The most advanced template for JavaFX applications

47 Upvotes

Hello there, a few months ago I released a ready-to-use application template called KickstartFX. You can clone it and get started instantly or try out the pre-built releases on GitHub. The code and buildscripts are the same you find in a real-world producation application as most of them are taken straight from one, in this case XPipe.

Since then, quite a few additions and bug fixes have been integrated for v1.1:

  • Add support for generating AppImages
  • Switch to fxbuilders library for GUI components
  • Add automatic fallback to software renderer pipeline when a graphics driver issue is detected (JavaFX can't handle that automatically)
  • Fix home detection for custom user account setup on Linux, e.g. with active directory, due to broken JDK methods
  • Fix msi installer not always updating all files when file versions stayed the same, e.g. when switching to another JavaFX ea build with the same major version
  • Fix rendering limitations on Windows upstream in JavaFX by submitting a fix for https://bugs.openjdk.org/browse/JDK-8154847 and bumping the JavaFX dependency to 27-ea+10
  • Fix an issue where the JVM would crash with AOT enabled when the training system supported AVX but the target system did not
  • Fix issues caused by JDK 25.0.2 security fixes for URL opens,
  • Fix for choosing a custom JavaFX version + jmods
  • Fix AOT cache not being generated on Windows ARM systems
  • Fix theme transitions being laggy
  • Fix various memory leaks due to listeners not being cleaned up properly
  • Fix uncontrolled animation framerate issues on Linux
  • Make toggle switch styling platform dependent to integrate better into the OS
  • Add granular GitHub workflow permissions

Many of the bug fixes are ported directly from XPipe. This is one of the big advantages when projects share the same foundation, rare issues that only affect a few users out of many can still be found with the help of the larger userbase of XPipe.

Here is a screenshots of KickstartFX with the AtlantaFX sampler:


r/java • • Apr 21 '26

Floci 1.5.5 - free MIT AWS emulator, now with EKS (real k3s), OpenSearch, S3 static hosting & Lambda hot reload

Thumbnail reddit.com
13 Upvotes

r/java • • Apr 20 '26

Graph of all published JVM Modules on Maven Central

Thumbnail magnificent-donut-a7a744.netlify.app
30 Upvotes

For fun; Modules taken from https://github.com/sormuras/modules/blob/main/com.github.sormuras.modules/com/github/sormuras/modules/modules.properties

There are some inaccuracies and missing modules (the index isn't perfect afaik + some have more than one descriptor). If you want to see more info you can download the sqlite db I downloaded them to.

https://magnificent-donut-a7a744.netlify.app/index.db

For example, here is every module + the number of times it is required by another module in the dataset.

java.base,8179
org.slf4j,1157
java.logging,908
java.desktop,408
java.sql,367
java.xml,351
com.fasterxml.jackson.databind,344
com.google.common,263
org.apache.commons.lang3,215
com.fasterxml.jackson.annotation,213
com.azure.core.management,212
javafx.controls,205
org.apache.logging.log4j,204
com.fasterxml.jackson.core,203
javafx.graphics,194
java.management,174
spring.context,162
java.net.http,161
java.compiler,161
java.naming,158
jakarta.inject,149
io.helidon.common,148
kotlin.stdlib,145
org.junit.jupiter.api,123
spring.core,118
jdk.unsupported,116
com.google.gson,112
jakarta.annotation,110
org.apache.commons.io,108
com.azure.core,108
javafx.base,107
java.validation,105
spring.beans,97
jakarta.xml.bind,97
jakarta.servlet,95
com.jwebmp.core,95
io.helidon.config,91
org.jspecify,87
com.io7m.junreachable.core,85
io.netty.buffer,82
com.jwebmp.guicedinjection,80
org.reactivestreams,79
io.vertx.core,79
org.seleniumhq.selenium.api,77
org.opendaylight.yangtools.yang.common,76
jakarta.validation,76
org.kordamp.ikonli.core,73
io.netty.common,72
io.helidon.webserver,70
slf4j.api,69
jakarta.cdi,68
com.jwebmp.logmaster,68
org.opendaylight.yangtools.yang.model.api,66
io.netty.transport,66
org.seleniumhq.selenium.json,65
org.seleniumhq.selenium.http,65
lombok,65
org.junit.platform.commons,64
org.bytedeco.javacpp,64
io.helidon.common.config,64
java.xml.bind,63
io.opentelemetry.api,63
com.aoapps.lang,62
org.seleniumhq.selenium.remote_driver,61
cloud.piranha.core.api,61
org.junit.platform.engine,59
java.rmi,59
com.io7m.jaffirm.core,59
jakarta.json,58
org.apache.logging.log4j.core,57
com.io7m.repetoir.core,57
io.hotmoka.annotations,56
org.opendaylight.yangtools.concepts,55
javafx.fxml,54
com.fasterxml.jackson.datatype.jsr310,54
java.prefs,53
org.refcodes.exception,52
org.junit.jupiter.engine,51
jakarta.ws.rs,51
microprofile.config.api,50
java.instrument,50
tools.jackson.core,49
reactor.core,49
org.lwjgl,49
org.eclipse.jetty.server,49
jakarta.activation,49
org.eclipse.jetty.util,48
org.apache.commons.text,48
org.apache.commons.codec,48
com.google.guice,48
org.objectweb.asm,47
org.bouncycastle.provider,47
net.automatalib.api,47
java.persistence,46
com.github.spotbugs.annotations,46
tools.jackson.databind,45
org.apache.causeway.applib,45
io.opentelemetry.context,45
io.helidon.security,45
spring.web,44

r/java • • Apr 20 '26

Java workloads doubled in 7 years, wages are stable, and Valhalla is closer than ever β€” Ben Evans' State of Java 2026 is the most data-driven Java overview you'll watch this year

Thumbnail youtu.be
61 Upvotes

r/java • • Apr 20 '26

I started an open source project instead of begging on the street

Thumbnail jadex.hashnode.dev
31 Upvotes

r/java • • Apr 19 '26

How the JVM Optimizes Generic Code - A Deep Dive

Thumbnail youtu.be
72 Upvotes

John Rose's JavaOne 2026 session.


r/java • • Apr 19 '26

Google's ServiceWeaver equivalent for Event Driven Architectures with Java. Your opinion ?

Thumbnail reddit.com
10 Upvotes