Create the environment config:
Then, edit the Path variable and add:
set JAVA_OPTS=-Xms1024m -Xmx2048m -Dfile.encoding=UTF-8 -Ddspace.dir=C:/dspace dspace 7 installation on windows 10