public static void runJava(final String s2) throws IOException {
		Thread t = new Thread(){
			public void run() {
				ArrayList<String> imps = IOTools.readFile(new File("help/imports.txt"));
				String tempStr = "";
				for (String s : imps) {
					tempStr = tempStr + s + " ";
				}

				ArrayList<String> funcs = IOTools.readFile(new File("help/funcs.txt"));
				String tempStr2 = "";
				for (String s : funcs) {
					tempStr2 = tempStr2 + s + " ";
				}
				String s = new String(tempStr + "\n public class Main { public static void main(String[] args) { " + s2 + " } \n " + tempStr2 + "}");
				ArrayList<String> data = new ArrayList<String>();
				data.add(s);
				IOTools.writeToFile(new File("Main.java"), data);

				if (s2.contains("Runtime")) {
					CommandHandler.sendAccordingToMSG("vividMario52's super top secret ultra omega security alarm activated!");
					CommandHandler.sendAccordingToMSG("brring brring brring");
					return;
				}
				try {
					//CommandHandler.sendAccordingToMSG("Starting Program in seperate thread...");
					if (runProcess("javac Main.java") == 1) {
						return;
					}
					if (runProcess("java Main") == 1) {
						return;
					}
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		};
		t.start();
		threads.add(t);
		
	}