WaitforExit doesn't work correctly

后端 未结 4 2039
粉色の甜心
粉色の甜心 2021-01-21 02:19

So I have been battling this issue for awhile now and tried many different ways to fix it but cannot.

Bascally waht my app does is calls a java file to load an applica

4条回答
  •  失恋的感觉
    2021-01-21 03:05

    I may be totally wrong here, but...

    process1.StartInfo.Arguments = "-Xmx512M -jar";
    process1.StartInfo.Arguments += toLoad;
    

    You need to have a space after the -jar

    Or else Java is going to immediately bomb out.

提交回复
热议问题