Anyway, here's how to fix it:
Go to Start-> Control Panel-> System-> Advanced (tab) → Environment Variables-> System Variables-> Create:
- Variable Name: _JAVA_OPTIONS
- Variable Value: -Xmx512M
or
set _JAVA_OPTS="-Xmx512M"
or
Modify the ant call as shown below.
<exec> <arg value="-J-Xmx512m" /> </exec>
then create the files again using ant. It worked for me.
source share