GitHub user gerwinjansen opened a pull request:
https://github.com/apache/tomee/pull/301
Fixes TOMEE-2261 Make service.bat compatible with JDK11+
When JAVA_HOME is set to a path with a space (e.g. C:\Program
Files\Java\jdk11.0.1), I get this error:
```
C:\Program Files\TomEE\bin>service install
11 was unexpected at this time.
```
I fixed it by adding quotes to the path.
Bonus: removal of superfluous tokens which are not used.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gerwinjansen/tomee TOMEE-2261
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tomee/pull/301.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #301
----
commit e420c0fe6b309d2238dc9c330cc092a32766dc5f
Author: Gerwin Jansen <gerwin84@...>
Date: 2018-12-21T10:03:55Z
Fixes TOMEE-2261 Make service.bat compatible with JDK11+
----
---