Rebuild .jar library from source files
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:
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.
精彩评论