Galip
Galip

Reputation: 5455

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 appeared 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: enter image description here

I hope I could make my question clear.

Thanks in advance,

Upvotes: 0

Views: 4718

Answers (3)

Tobias
Tobias

Reputation: 9380

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

Upvotes: 0

Che Jami
Che Jami

Reputation: 5151

In your command line use:

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

More information here.

Upvotes: 1

Pete Houston
Pete Houston

Reputation: 15079

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

Upvotes: 1

Related Questions