throw new RuntimeException(EclipseAdaptorMsg.formatter.getString("ECLIPSE_STARTUP_BUNDLE_NOT_FOUND",name));
throw new IllegalArgumentException(EclipseAdaptorMsg.formatter.getString("ECLIPSE_STARTUP_BUNDLE_NOT_FOUND", name));
	private static Bundle[] loadBasicBundles() throws Exception {		long startTime = System.currentTimeMillis();		ServiceReference reference = context.getServiceReference(StartLevel.class.getName());		StartLevel start = null;		if (reference != null) 			start = (StartLevel)context.getService(reference);		String[] installEntries = getArrayFromList(System.getProperty("osgi.bundles"));		String syspath = getSysPath();		Bundle[] bundles = new Bundle[installEntries.length];		for (int i = 0; i < installEntries.length; i++) {			String name = installEntries[i];			try {				int level = -1;				int index = name.indexOf('@');				if (index >= 0) {					String levelString = name.substring(index + 1, name.length());					level = Integer.parseInt(levelString);					name = name.substring(0, index);				}					String location = searchForBundle(name, syspath);				if (location == null)					throw new RuntimeException(EclipseAdaptorMsg.formatter.getString("ECLIPSE_STARTUP_BUNDLE_NOT_FOUND",name));				// don't need to install if it is already installed				bundles[i] = getBundleByLocation(location);				if (bundles[i] != null)					continue;				bundles[i] = context.installBundle(location);								if (level >= 0 && start != null)					start.setBundleStartLevel(bundles[i], level);			} catch (Exception ex) {				// there was an error installing one of the basic bundles - log and bail				String message = EclipseAdaptorMsg.formatter.getString("ECLIPSE_STARTUP_ERROR_INSTALLING_BUNDLE",bundles[i]);				adaptor.getFrameworkLog().log(new FrameworkLogEntry(0,"org.eclipse.osgi",message,0,ex));				throw ex;			}		}		// force all basic bundles we installed to be resolved		refreshPackages(bundles);			// schedule all basic bundles to be started		for (int i = 0; i < bundles.length; i++) {			try {								if (bundles[i].getState() == Bundle.INSTALLED)					throw new RuntimeException(EclipseAdaptorMsg.formatter.getString("ECLIPSE_STARTUP_ERROR_BUNDLE_NOT_RESOLVED",bundles[i].getLocation()));				if (!bundles[i].isFragment())					bundles[i].start();							} catch (Exception ex) {				// there was an error starting one of the basic bundles - log and bail				String message = EclipseAdaptorMsg.formatter.getString("ECLIPSE_STARTUP_ERROR_STARTING_BUNDLE",bundles[i].getLocation());				adaptor.getFrameworkLog().log(new FrameworkLogEntry(0,"org.eclipse.osgi",message,0,ex));				throw ex;			}					}		context.ungetService(reference);		if (debug)			System.out.println("Time loadBundles in the framework: " + (System.currentTimeMillis() - startTime));				return bundles;	}