How to compile runnable jar from packages?
Posted
by sacamano
on Stack Overflow
See other posts from Stack Overflow
or by sacamano
Published on 2010-03-27T00:54:48Z
Indexed on
2010/03/27
1:03 UTC
Read the original article
Hit count: 314
Hey.
My java application has got a package structure similar to this; src/com/name/app , src/com/name/app/do , src/com/name/utils/db and so on.
How would I go about compiling java files in these directories in to a runnable jar? I need to package required libraries into the generated JAR (jdbc).
I've always done these things in Eclipse but now I need to supply a couple of people with a way to compile the repository without the use of eclipse and I was thinking of making a makefile or a script that invokes the necessary javac pattern.
Any help is greatly appreciated.
© Stack Overflow or respective owner