File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes MANIFEST.MF Class-path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "MANIFEST.MF Class-path" Watch "MANIFEST.MF Class-path" New topic

MANIFEST.MF Class-path

ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 375
I used eclipse and have a project. I saw in its MANIFEST.MF file it includes



I believe this file is created by eclipse. However when I looked at the project's property --> Java build path, I only saw "project_1" there. So

Question 1: when I build this project, do I have to build (compile) "project_1" and "project_2" first ? Or do I just need to compile "project_1" first ?

Question 2: when I write ant script to create a jar file for this project, the jar will include a "META-INF" and a MANIFEST.MF inside. How do I specify in my ant script that I will just use this MANIFEST.MF ? (I assume I should provide this info in the "jar" target, but how ?)

Thank You.
I agree. Here's the link:
subject: MANIFEST.MF Class-path
It's not a secret anymore!