public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException, IOException {
		if(args.length == 0) {
			Updater.update();
		} else {
			new File("Updater.jar").delete();
		}
		
		os = System.getProperty("os.name").toLowerCase().contains("win") ? OS.WINDOWS
				: System.getProperty("os.name").toLowerCase().contains("mac") ? OS.MAC 
				: System.getProperty("os.name").toLowerCase().contains("linux") ? OS.LINUX // Why did I even include Linux? Essentials isn't available on Linux.
				: null;
		
		if(os == null) {
			JOptionPane.showMessageDialog(window, "Error determining OS.", "", JOptionPane.ERROR_MESSAGE);
			System.exit(0);
		}
		
		switch(os) {
			case WINDOWS:
				break;
			case MAC:
				System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Essentials Launcher");
				break;
			case LINUX:
				JOptionPane.showMessageDialog(window, "Linux not implemented.");
				System.exit(0);
				break;
		}
		
		UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		new EssentialsLauncher();
	}