Capsule fails to recognised version string produced by Java 10 (and later).
In a nutshell the version string produced by Java includes a date string, e.g.:
$ java -version
java version "10" 2018-03-20
This cause the PAT_JAVA_VERSION_LINE regex to fail.