JAVA_PATH in my code is set to "C:\Program Files\Java\jdk1.7.0"
Since the path has spaces, double quotes is used while assigning the path to the variable JAVA_PATH. I am executing the command from .bat file as follows-
set JAVA_PATH="C:\Program Files\Java\jdk1.7.0"
set COMMAND_EXEC=%JAVA_PATH%\bin\java -Xmx1024m ...(classpath and program to execute)
Executing the above command is not initiating the process and is showing error as "The system cannot find the file -Xmx1024m"
Can someone suggest on this ?