Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a one-liner or some extremely easy to use tool to create utility jars?

Tags:

java

jar

utility

I'd like to show other people how to create jars from their code, so they can share it with others. In the meantime, I'd like to make this as easy as possible for them.

What would be the easiest way of doing that?

like image 513
Geo Avatar asked Dec 19 '25 08:12

Geo


1 Answers

The impression I have is that jars are really just a .zip files. So you just need to put your classes and manifests into the right folders and use a utility like zip to zip them up into a final .jar file.

like image 92
Paul Hsieh Avatar answered Dec 21 '25 23:12

Paul Hsieh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!