public void launchMinecraft(String[] args) {
        this.setVisible(false);

        if (loginPanel1.forceUpdate()) {
            DisplayFrame displayFrame = new DisplayFrame();
            displayFrame.setVisible(true);
            displayFrame.downloadFiles();
            displayFrame.setVisible(false);
        }

        ArrayList<String> command = new ArrayList<String>();
        command.add("java");
        command.add("-Xmx512M");
        command.add("-Xms128M");
        command.add("-cp");
        command.add("\"%BIN%\\minecraft.jar" + File.pathSeparatorChar
                + "%BIN%\\lwjgl.jar" + File.pathSeparatorChar
                + "%BIN%\\lwjgl_util.jar" + File.pathSeparatorChar
                + "%BIN%\\jinput.jar\"");
        command.add("-Djava.library.path=\"%BIN%\\natives\"");
        command.add("net.minecraft.client.Minecraft");
        command.add(args[0]);
        command.add(args[3]);

        File bin = new File(OS.getFolderFile(), "bin");

        for (int i = 0; i < command.size(); i++) {
            command.set(i, command.get(i).replace("%BIN%", bin.getPath()));
        }

        ProcessBuilder builder = new ProcessBuilder().command(command).inheritIO();
        try {
            Process process = builder.start();
            InputStream error = process.getErrorStream();
            InputStream input = process.getInputStream();
            BufferedReader errorReader = new BufferedReader(new InputStreamReader(error));
            BufferedReader inputReader = new BufferedReader(new InputStreamReader(input));
            EchoThread errorThread = new EchoThread(errorReader);
            EchoThread inputThread = new EchoThread(inputReader);
            errorThread.start();
            inputThread.start();
            process.waitFor();
        } catch (InterruptedException ex) {
            Logger.getLogger(LauncherMain.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(LauncherMain.class.getName()).log(Level.SEVERE, null, ex);
        }
        System.exit(0);
    }