See prerequisites of this sample.
pack build applications/aspectjYou can also select a specific builder and control the JVM version by passing additional arguments:
pack build applications/aspectj --builder paketobuildpacks/ubuntu-resolute-builder --env BP_JVM_VERSION=17docker run --rm --tty --publish 8080:8080 applications/aspectjcurl -s http://localhost:8080/actuator/health | jq .