I'm trying to get an OSGi example application working, but I'm running into trouble while starting OSGi from the command line.
Note that I don't want to run the bundle in the Eclipse OSGi environment. This works fine.
First, I created the example bundle. Afterwards, I tried to run the the application in the command line. To do so, I run the OSGi jar as stated in the above-mentioned article, official instructions and a related question:
$ cd
$ cp /usr/local/eclipse/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
org.eclipse.osgi.jar
$ java -jar org.eclipse.osgi.jar -console
Now, OSGi seems to run, but the console is not shown.
According to the above-mentioned article (see Section 4.2) and a related question with solution, the following additional packages are required:
- org.eclipse.equinox.console
- org.apache.felix.gogo.command
- org.apache.felix.gogo.runtime
- org.apache.felix.gogo.shell
Are they missing? If yes, how do I link them?
My question: How can I run OSGi with console in the command line?
Thanks for any help!
EDIT 1: $ eclipse -console -noExit
and closing the IDE works as a workaround :-) sadly, IDE bundles are loaded this way as well.