if(hackedFile.exists()) {
URL u = hackedFile.toURI().toURL();
URLClassLoader cl = new URLClassLoader(new URL[]{u}, Main.class.getClassLoader());
@SuppressWarnings("unchecked")
Class<Frame> launcherFrame = (Class<Frame>) cl.loadClass("net.minecraft.LauncherFrame");
String[] nargs = new String[args.length];
System.arraycopy(args, 0, nargs, 0, args.length); // Transfer the arguments from the process call so that the launcher gets them
Method main = launcherFrame.getMethod("main", new Class[]{ String[].class });
main.invoke(launcherFrame, new Object[]{ nargs });