How do I run gatling.bat from my Java Application?

This is what I have in Java:

Runtime.getRuntime().exec("cmd /c
F:\\gatling-charts-highcharts-2.0.0-M3a\\bin\\gatling.bat 9 myId myDesc" );

*Printout the result in consle is:*

F:\WorkSpaces\MyEclipse 10\Gatling>setlocal

F:\WorkSpaces\MyEclipse 10\Gatling>rem set GATLING_HOME automatically if
possible

F:\WorkSpaces\MyEclipse 10\Gatling>set "OLD_DIR=F:\WorkSpaces\MyEclipse
10\Gatling"

F:\WorkSpaces\MyEclipse 10\Gatling>cd ..

F:\WorkSpaces\MyEclipse 10>set
"DEFAULT_GATLING_HOME=F:\WorkSpaces\MyEclipse 10"

F:\WorkSpaces\MyEclipse 10>cd F:\WorkSpaces\MyEclipse 10\Gatling

F:\WorkSpaces\MyEclipse 10\Gatling>rem if gatling home is correctly set

F:\WorkSpaces\MyEclipse 10\Gatling>if exist
"F:\gatling-charts-highcharts-2.0.0-M3a\bin\gatling.bat" goto gotHome

F:\WorkSpaces\MyEclipse 10\Gatling>echo GATLING_HOME is set to
"F:\gatling-charts-highcharts-2.0.0-M3a"

GATLING_HOME is set to "F:\gatling-charts-highcharts-2.0.0-M3a"

F:\WorkSpaces\MyEclipse 10\Gatling>set JAVA_OPTS=-server
-XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms512M -Xmx512M
-Xmn100M -XX:+HeapDumpOnOutOfMemoryError -XX:+AggressiveOpts
-XX:+OptimizeStringConcat -XX:+UseFastAccessorMethods -XX:+UseParNewGC
-XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled
-XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8
-XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly

F:\WorkSpaces\MyEclipse 10\Gatling>set
CLASSPATH="F:\gatling-charts-highcharts-2.0.0-M3a"\lib\*;"F:\gatling-charts-highcharts-2.0.0-M3a"\conf;"F:\gatling-charts-highcharts-2.0.0-M3a"\user-files;

F:\WorkSpaces\MyEclipse 10\Gatling>set COMMAND=-cp
"F:\gatling-charts-highcharts-2.0.0-M3a"\lib\*;"F:\gatling-charts-highcharts-2.0.0-M3a"\conf;"F:\gatling-charts-highcharts-2.0.0-M3a"\user-files;
io.gatling.app.Gatling

F:\WorkSpaces\MyEclipse 10\Gatling>java -server -XX:+UseThreadPriorities
-XX:ThreadPriorityPolicy=42 -Xms512M -Xmx512M -Xmn100M
-XX:+HeapDumpOnOutOfMemoryError -XX:+AggressiveOpts
-XX:+OptimizeStringConcat -XX:+UseFastAccessorMethods -XX:+UseParNewGC
-XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled
-XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8
-XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly -cp
"F:\gatling-charts-highcharts-2.0.0-M3a"\lib\*;"F:\gatling-charts-highcharts-2.0.0-M3a"\conf;"F:\gatling-charts-highcharts-2.0.0-M3a"\user-files;
io.gatling.app.Gatling 9 myId myDesc

F:\WorkSpaces\MyEclipse 10\Gatling>goto exit

F:\WorkSpaces\MyEclipse 10\Gatling>pause

When I run the script this show goto exit. How to pass the param to
gatling.bat in the commandline?Anyone else meet this issue?

Why do you want to do that?
Then, you can simply directly launch Gatling in Java. See helpers generated by the Gatling maven archetype.