I have a batch file:
@echo off
cd %AppData%\.minecraft
start javaw -Xms1024m -Xmx1024m -Djava.library.path="\bin\natives" -classpath "bin\minecraft.jar;bin\jinput.jar;bin\lwjgl.jar;bin\lwjgl_util.jar" net.minecraft.client.Minecraft Flood2d
How do I write it to start with ProcessBuilder?
If you really want ProcessBuilder here it is:
but Runtime.exec() is also fine for the job:
Note: we need “cmd /c start” because start is not an app, it’s a cmd’s command