eclipse版本如下:
Eclipse Java EE IDE for Web Developers.
Version: Mars Release (4.5.0)
Build id: 20150621-1200
------------------------
1、進入eclipse-----run----run configuration---osgi framework---new
2、取消全選
3、在搜索框中輸入 ?osgi,選擇 org.eclipse.osgi.xxxx 的選項
4、在搜索框中輸入 ?console,選擇 org.eclipse.equinox.console?
5、在搜索框中輸入 gogo,選擇 xxxx.gogo.shell ? ? ?gogo.command ? gogo.runtime
6、點擊 run
運行效果: