import java.lang.Runtime; import java.util.ArrayList; public class Main { public ArrayList servers; public static void main(String[] args) { } public static void startServers() { for (Server server : servers) { if (server.isEnabled()) { String path = server.getPath(); ServerType = this.type; Runtime rt = Runtime.getRuntime(); Process pr = rt.exec("java -Xmx" + $MemoryValue + " -Xms512M -jar " + '"' + $loc + "\\" + $Type + '" nogui'); } } } }