Starting from Equinox 3.8.0.M4, it has a new console. So you need also these four bundles for it to run properly.
org.eclipse.equinox.console.jar
org.apache.felix.gogo.shell.jar
org.apache.felix.gogo.command.jar
org.apache.felix.gogo.runtime.jar
These jar files can be found in your Eclipse installation folder under 'plugins' folder. Copy these jars and put them in the same folder with your org.eclipse.osgi.jar
and it would look like:
- somedir/
- configuration/
- org.eclipse.osgi.jar
- org.eclipse.equinox.console.jar
- org.apache.felix.gogo.shell.jar
- org.apache.felix.gogo.command.jar
- org.apache.felix.gogo.runtime.jar
Then edit config.ini
as:
osgi.bundles=org.apache.felix.gogo.runtime@start, org.apache.felix.gogo.command@start, org.apache.felix.gogo.shell@start, org.eclipse.equinox.console@start
After doing this, run java -jar org.eclipse.osgi.jar -console
in your command line and the OSGi console will start.
Reference Bug 371101
UPDATE 06/2022:
the list of required bundles got longer in the meantime:
osgi.bundles= \
org.apache.felix.gogo.runtime_1.1.4.v20210111-1007.jar@start, \
org.apache.felix.gogo.command_1.1.2.v20210111-1007.jar@start, \
org.apache.felix.gogo.shell_1.1.4.v20210111-1007.jar@start, \
org.eclipse.equinox.console_1.4.500.v20211021-1418.jar@start, \
org.eclipse.osgi.services_3.10.200.v20210723-0643.jar@start, \
org.osgi.util.function_1.2.0.202109301733.jar@start, \
org.osgi.util.promise_1.2.0.202109301733.jar@start, \
Note that you can reference the org.eclipse.osgi
directly in the plugin folder. And if you do so, your configuration folder is in the plugins folder!
java -jar plugins\org.eclipse.osgi_3.18.0.v20220516-2155.jar -console