开发者

Rebuild .jar library from source files

开发者 https://www.devze.com 2023-04-11 07:45 出处:网络
Hey guys I have a simple question. I downloaded and used the jml library to make my own messenger. This all worked until I decided to make an Android version of it. It appe开发者_Go百科ared that I ha

Hey guys I have a simple question.

I downloaded and used the jml library to make my own messenger. This all worked until I decided to make an Android version of it. It appe开发者_Go百科ared that I had to change 2 lines in two class files and patch 1 file in the source. So I downloaded the source and did this.

Now I need to make a .jar file out of the source again so I can add it to my project as an "external jar".

Screen of the source folder:

Rebuild .jar library from source files

I hope I could make my question clear.

Thanks in advance,


In your command line use:

java -jar cf <jar-name> <files>

More information here.


Try this, on menu Project -> Properties -> Android, at right pane check Is Library. Build and find your jar file in your project output.


In eclipse, you can export is a *.jar file.

0

精彩评论

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

关注公众号