I got the solution for this problem from the other Drools community hosted on Nabble. Thanks to Geoffery and Adreas for their valuable suggestions.
Andreas suggested me to the following:
The fix is simple, just add some quotes around the java call:
"%JAVA_HOME%\bin\java" -Xms256m -Xmx512m -server -cp %mainJar% %mainClass%
In addition, for some examples the input, output, solved, unsolved folders are not part of the planner package. I took them from the subversion repository that can be found at:
Hope this would help someother guys.
let the script this way: java -Xms256m -Xmx512m -server -cp %mainJar% %mainClass%
it works too