Skip to content
Switch branches/tags
This branch is 1 commit ahead, 15 commits behind AdoptOpenJDK/

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
  is a HTTP microservice that builds optimized/minimized Java runtimes on the fly.

This project is currently experimental and subject to change at any time.


This project is a wrapper for Java's jlink utility that makes it faster and easier to build custom Java runtimes for an application. Just send a HTTP request and fetches the appropriate JDK (from AdoptOpenJDK), runs jlink to produce a custom runtime image containing your dependencies, then returns that compressed runtime in the response.

Using an optimized runtime is a good idea when deploying to a production environment or when bundling a platform-specific runtime to distribute with your application. For many applications, a jlink'd runtime will be significantly smaller in size.

Usage Examples

The following examples can be run interactively from the Swagger documentation.

Download a minimized Java 11 runtime for Linux x64 (containing java.base only)

Download a minimized Java 11 runtime for Linux x64 (containing java.desktop and jdk.zipfs),jdk.zipfs

Download a minimized runtime in a Dockerfile

# If you do 'FROM openjdk' then you'll get a full runtime
FROM alpine:latest

# Install dependencies
RUN apk add curl

# Install custom runtime
RUN curl -G '' \
    -d modules=java.base \
    | tar zxf -

# Install application
# ...

Upload your application's (experimental)

Suppose your application has the following module definition:

module com.github.example {
    requires org.slf4j;

Then to build a custom runtime containing your dependencies, you can send a POST request containing your

curl --data-binary @com.github.example/src/main/java/ \
  '' \
  --output app_runtime.tar.gz

The artifacts parameter is a comma-separated list of the Maven Central coordinates of your dependencies. This is required to know what versions to include in your runtime. In the future, we may be able to get this information from a build.gradle or pom.xml which would be much more convenient.

Unfortunately this can't work for dependencies that are automatic modules (because automatic modules don't specify their dependencies).


Thanks to the following projects:

  • gin - for handling HTTP requests
  • jlink - for minimizing runtime images
  • testify - for unit testing


Build optimized Java runtimes in your browser!







No releases published


No packages published