This is the time server example from Netty together
with the minimum necessary substitutions to create native images on GraalVM plus a build file that configures
Graals native-image
tool for you.
You need Maven, GraalVM and GraalVMs native image tool for this to work.
Build native images:
./mvnw clean package
Run the time server on port 4711:
./target/server 4711
Run the client in a different shell to get the time from the server:
./target/client localhost 4711