private static void compileJavaTest(File file, boolean execute) throws IOException, InterruptedException
	{
		try
		{
			JavaCompiler.compile(file, new PrintWriter(new BufferedWriter(new FileWriter("temp/Main.java"))));
			if (!execute)
				return;
		}
		catch (IOException ex)
		{
			System.err.println("Failed in IO");
			throw ex;
		}
		catch (Exception ex)
		{
			System.err.println("Failed when compiling .ambr file");
			throw ex;
		}
		
		String s;
		BufferedReader stdInput;
		
		System.out.println("\nNow attempting to compile .java file\n");
		
		try
		{
			Process compiler = new ProcessBuilder("javac", "-cp", "temp", "temp/Main.java").redirectErrorStream(true).start();
			stdInput = new BufferedReader(new InputStreamReader(compiler.getInputStream()));
			s = null;
			while ((s = stdInput.readLine()) != null)
			{
				if (s.startsWith("Note: "))
					continue;
				else
					throw new RuntimeException(s);
			}
			compiler.waitFor();
		}
		catch (Exception ex)
		{
			System.err.println("Error when compiling .java file:");
			throw ex;
		}
		
		System.out.println("\nNow attempting to execute .class file\n");
		
		try
		{
			Process executor = new ProcessBuilder("java", "-cp", "temp", "Main").redirectErrorStream(true).start();
			stdInput = new BufferedReader(new InputStreamReader(executor.getInputStream()));
			s = null;
			while ((s = stdInput.readLine()) != null)
				System.out.println(s);
			executor.waitFor();
		}
		catch (Exception ex)
		{
			System.err.println("Error when executing .class file");
			throw ex;
		}
	}