Hallo, ich arbeite derzeit mit ProcessBuildern, sobald ich versuche folgenden Code auszuführen:
bekomme ich diesen Fehler:
Kann mir jemand helfen?
Java:
new ProcessBuilder("java " +
"-Dfile.encoding=UTF8 -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:+UseCompressedOops -XX:MaxGCPauseMillis=10 -XX:GCPauseIntervalMillis=100 -XX:+UseAdaptiveSizePolicy -XX:ParallelGCThreads=2 -XX:UseSSE=3 " +
"-Xms" + maxRam + "M -Xmx" + maxRam + "M " +
"-Dghoulcloud.name=\""+ name + "\" " +
"-Dghoulcloud.master.ip=\"" + GhoulDaemon.getInstance().getConfig().getString("master.ip") + "\" " +
"-Dghoulcloud.master.port=" + GhoulDaemon.getInstance().getConfig().getInteger("master.port") + " " +
"-jar proxy.jar").directory(directory).start();
Code:
Cannot run program "java -Dfile.encoding=UTF8 -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:+UseCompressedOops -XX:MaxGCPauseMillis=10 -XX:GCPauseIntervalMillis=100 -XX:+UseAdaptiveSizePolicy -XX:ParallelGCThreads=2 -XX:UseSSE=3 -Xms1024M -Xmx1024M -Dghoulcloud.name="Test-1" -Dghoulcloud.master.ip="localhost" -Dghoulcloud.master.port=40 -jar proxy.jar" (in directory ".\temp\proxies\Test-1"): CreateProcess error=2, Das System kann die angegebene Datei nicht finden