View Full Version : Packaging Java source code

November 11th, 2007, 10:22 PM
What is the best way to package my Java source code to make it easy for others to build? Is there a Java version of make?

Ramses de Norre
November 11th, 2007, 10:24 PM
Is there a Java version of make?
Absolutely, Apache's Ant (http://ant.apache.org/).

November 11th, 2007, 10:31 PM
Absolutely, Apache's Ant (http://ant.apache.org/).

Could not agree more :D :D :P

November 12th, 2007, 02:21 AM
Absolutely, Apache's Ant (http://ant.apache.org/).


Ants are cool.

November 12th, 2007, 05:14 AM
Depending on what your needs are, it might be simpler to just bundle all the compiled byte code (since it is portable) into a jar file and distribute that. Others can then include your jar file when building their projected and be able to call the classes in your code.

-- egibby

November 12th, 2007, 05:33 AM
Thanks guys, I'll take a look at Ant. I will create bytecode versions of each project, but I want to be open source friendly so that other Java programmers can get ideas from what I do.

November 12th, 2007, 08:54 AM
There's also maven http://maven.apache.org/