This is not exactly the same error, but worth checking:
The error comes from the following block of code, so it’s definitely something to do with not being able to execute java -jar ...:
java -jar ...