Background: Since Java 9 it is possible to create custom runtime images (JRE+program) using jlink.
It is possible to install Java programs as Windows service using prunsrv.exe (part of Apache Commons Daemon).
prunsrv can be used in three start modes: java, jvm and exe.
I managed to start a custom runtime image using the exe mode and a traditional Java program (classpath + normal JDK) using jvm mode, but I was not able to use the jvm mode (which doesn't start a new process) with the image.
prunsrv has a "JvmOptions9" parameter, which could be a hint that this scenario may be supported, but I am not sure.