This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I suggest using Maven instead of ANT. Its much less verbose and handles multi-module projects like this very easily. Either direction you go this is really a build tools question so I will move it to a more appropriate forum for you.
monicka rk akilan wrote:I want to make these into two jars based on the module also having some packages and login module.
What do you mean by this sentence?
Anyway, like Bill said, Maven is the way to go. Create a directory structure like this:
Then your modules' pom files should look something like this:
The project's pom should look like this:
After you've installed Maven, you can just open a command prompt in your project folder, and run mvn package, and a jar of each of your modules should appear in the target folder of that module, e.g. Project/Abc/target/abc-0.1.0.jar.