Error occurred during initialization of VM.
Could not reserve enough space for object heap.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
The bat file has the following command:
java -cp stanford-corenlp-3.2.0.jar;stanford-corenlp-3.2.0-models.jar;xom.jar;joda-time.jar;jollyday.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -props props.properties -filelist filelist.txt
It works from the cmd window with no errors!
I have the following python code:
import os
import subprocess
os.chdir('C:/Users/Christos/Documents/stanford-corenlp-full-2013-06-20/')
p = subprocess.Popen(r'start cmd /c run_mouskos.bat', shell=True)
p.wait()
print 'done'
I have also tried various other ways for executing the bat file from python with no luck. How can i run it with no errors?