public void startFramework() throws OSGiException, IOException {
		createAndConfigureFramework();

		try {
			felixFramework.init();
		}
		catch (BundleException e) {
			throw new OSGiException("Exception initializing felix OSGi framework", e);
		}

		frameworkBundleContext = felixFramework.getBundleContext();

		if (frameworkBundleContext == null) {
			throw new OSGiException("Felix OSGi framework has no bundle context");
		}

		addDebuggingListeners();

		Bundle bundle = frameworkBundleContext.getBundle();
		frameworkBundleContext.addBundleListener(new MyBundleListener(bundle));

		try {
			felixFramework.start();
		}
		catch (BundleException e) {
			throw new OSGiException("Exception starting felix OSGi framework", e);
		}
	}
Start the framework.

@throws OSGiException framework failures
@throws IOException filesystem setup
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/osgi/BundleHost.java