I used * because I want to include all the classes in the current directory and its sub directories.Code:
jar cfm myJar.jar manifest.mf *
Not like that.I wrote manifest as:Quote:
So you include that folder, not the files containing in that folders, right?
and the jar file I created also contains this lib folder.Code:
Class-Path: lib/jar1.jar lib/jar2.jar
Try it without using * sign.
is this you meant?Code:
jar cfm myJar.jar manifest.mf pack1\* pack2\* lib\*
it also have the same problem.
Interesting, either one of the way should work. Only keeping the all folder structure it's work.
In Netbeans it's true. I can't make a single jar file, because build.xml file keep it's own folder structure to execute the main jar file. I've never try to change there settings. In distribution what I do is create single *.exe file and installation path keep as the initial folder structure. Then I don't want to worried about a single jar file.