throw new IllegalStateException("Platform is already running");
throw new IllegalStateException(EclipseAdaptorMsg.formatter.getString("ECLIPSE_STARTUP_ALREADY_RUNNING"));
	public static void startup(String[] args, Runnable endSplashHandler) throws Exception {		if (running)			throw new IllegalStateException("Platform is already running");		long start = 0;		processCommandLine(args);		if (debug) {			start = System.currentTimeMillis();		}		LocationManager.initializeLocations();		log = createFrameworkLog();		loadConfigurationInfo();		loadDefaultProperties();		finalizeProperties();		adaptor = createAdaptor();		((EclipseAdaptor) adaptor).setLog(log);		OSGi osgi = new OSGi(adaptor);		osgi.launch();		String console = System.getProperty(PROP_CONSOLE);		if (console != null)			startConsole(osgi, new String[0], console);		context = osgi.getBundleContext();		publishSplashScreen(endSplashHandler);		Bundle[] basicBundles = loadBasicBundles();		setStartLevel(6);		// they should all be active by this time		ensureBundlesActive(basicBundles);		running = true;		if (debug)			System.out.println("Time to restart the fwk :" + (System.currentTimeMillis() - start)); //$NON-NLS-1$	}