开发者

how to install BND environment to use bnd in commandline?

开发者 https://www.devze.com 2023-03-16 03:21 出处:网络
I need to use bnd in a command line environment to develop OSGI project. I searched the following site: http://www.aqute.biz/Bnd/DownloadBut there are no instructions for how to install bnd in a comm

I need to use bnd in a command line environment to develop OSGI project. I searched the following site: http://www.aqute.biz/Bnd/Download But there are no instructions for how to install bnd in a command line environment.

Can anybody can give me some information? I need detailed in开发者_C百科structions.

My purpose is to use bnd in windows XP as follows:

bnd aQute.tutorial.chat.bnd


The bnd command is a shell script that executes the following command:

java -jar biz.aQute.bnd.jar

You will have to make that script yourself.

(as mentioned on http://www.aqute.biz/Bnd/Download)


  • Download from the maven repository
  • Using jpm4j.org then you can easily install bnd on the command line with sudo jpm install -f bnd


Download bnd and start it with Java. You should download bnd from jpm (select the latest master or staging version, and download from that revision page) or from Cloudbees.

Once you've downloaded, you should have a file biz.aQute.bnd-#.#.#.jar. You can run this file from the command line line:

C:/> java -jar biz.aQute.bnd-#.#.#.jar version
2.3.0.20131118-174557

You could place this in a .bat file like:

@java -jar biz.aQute.bnd-#.#.#.jar %1 %2 %3 %4 %4 %6 %7 %8 %9
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号