public String getLaunchOptions() {
		StringBuilder sb = new StringBuilder();
		OS os = Util.getPlatform();
		if (os==OS.macos) {
			sb.append("#!/bin/bash;");
			sb.append("cd \"${0%/*}\"; java -Xms1024M -Xmx1024M -jar spout*.jar ");
		} else if (os==OS.windows) {
			sb.append("@echo off;");
			sb.append("java -server -XX:+UseG1GC -Xms1024M -Xmx1024M -jar spout*.jar ");
		} else if (os==OS.linux || os==OS.solaris) {
			sb.append("#/bin/sh;");
			sb.append("java -server -XX:+UseG1GC -Xms1024M -Xmx1024M -jar spout*.jar ");
		}
		
		sb.append("--platform ");
		sb.append(((String) platform.getSelectedItem()).toUpperCase());
		sb.append(" ");
		
		if (debug.isSelected()) {
			sb.append("--debug ");
		}
		
		if (ccoveride.isSelected()) {
			sb.append("--ccoveride ");
		}
		
		sb.append("--rendermode ");
		sb.append(((String) rendermode.getSelectedItem()).toUpperCase());
		
		return sb.toString();
	}