I am using java.util.jar.* to create a jar file from Java code. It is creating the file properly with an empty manifest file. But, when I load this JAR into the application server the server is not recognizing it. If I use the same set of files and create a JAR file using the jar -cvf command at dos prompt and load it into application server it recognizes it. What could be the problem?
Both Jar files are having same set of files, same size except the manifest.mf file.