Another option would be to configure and start an embedded web server (e.g. Undertow). I.e. the user would have to specify the port and add one dependency to the classpath.