OSGi學習之install bundle

在osgi中install bundle很簡單。指令如下:

file:+jar包路徑:

osgi> install file:./hello-activator-1.0.0.jar

Bundle id is 3

 

osgi> ss

 

Framework is launched.

 

id      State       Bundle

0       ACTIVE      org.eclipse.osgi_3.7.2.v20120110-1415

3       INSTALLED   com.pragprog.HelloWorld_1.0.0

 

osgi> start 3

Hello World!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章