Isn't this all a bit roundabout?

```
require(version.length > 2 && version.startsWith("1."), s"Ill-formed Java version: $version")
javaVersion(2) >= version(2)
```