DarkWitch_

Untitled

Mar 14th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. LauncherFrame.getInstance();
  2.  
  3.  
  4. GameLauncher gameLauncher = new GameLauncher(M4C_INFOS, GameFolder.BASIC,
  5. new AuthInfos(usernameField, "sry", "nope"),
  6. new String[] { "-Xms512M", "-Xmx" + ram });
  7. try {
  8. Process p = gameLauncher.launch();
  9. Thread.sleep(3000L);
  10. LauncherFrame.getInstance().setVisible(false);
  11. p.waitFor();
  12. System.exit(0);
  13. } catch (IOException e) {
  14. e.printStackTrace();
  15.  
  16. Launcher.getErrorUtil().catchError(e, "impossible de lancer Mine4Craft");
  17. System.exit(1);
  18. } catch (InterruptedException e) {
  19. Launcher.getErrorUtil().catchError(e, "impossible de lancer Mine4Craft");
  20. // TODO Auto-generated catch block
  21. e.printStackTrace();
  22. }
  23. System.exit(0);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment