- Framework framework = frameworkFactory.newFramework(configuration);
- try {
- framework.start();
- } catch (BundleException e) {
- throw new OsgiBootException("Cannot start OSGi framework", e);
- }
- return framework;
- }
-
- public static void main(String[] args) {
- Framework framework = launch();