I'm having the same issue Cong Hui has described in this Stack Overflow question:

http://stackoverflow.com/q/43331077/4852675

Namely, that I get this error when trying to run basexhttp.bat

----
Error occurred during initialization of VM
Could not reserve enough space for 1433600KB object heap
----

My system is running Windows 10 Home version 1703 build 15063.296 (just updated), with 4.00 GB RAM

Is there a solution?