This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I tried working with the jar task of ant supplied with netbeans 3.2 release - build 38. I will attach the build file that i have made for the test cases. When I try to open this jar file in another java program, I get a null reference trying to get the manifest file. Basically, the JarInputStream does not recognize the manifest file, though it has been correctly included in the jar file. Though, if I use the exec task with the jar command, it works fine. Please advise.
Created attachment 1472 [details] The build file with the jar task commented and the exec command enabled.
Plenty of people, including the NetBeans project itself, use the <jar> task without problems, inside or outside the IDE. So if it is not working for you, you must provide a small, self-contained test case that can reproduce your specific problem. BTW: suggest use of <pathelement location="..."/> for your complex space-containing classpath entries, and avoiding use of <arg line="..."/>.
Verified.
Created attachment 1854 [details] Zip file containing the test case
I have added the test case. Notice that the entries displayed are not the same as that in the Jar file.
I am not able to reproduce this. With your manifest file I got 0 entries, BUT 5 Attributes. The whole Manifest looks like: Manifest-Version: 1.0 # is also an attribute Attribute1: value1 Attribute2: value2 Attribute3: value3 # blank line Name: Entry1 Attribute14: attribute1 of entry1 Attribute15: attribute2 of entry2 # blank line Name: Entry2 ... This works for me. I cannot figure out what the problem could be, sorry.
Sorry for the trouble.
Not a valid problem.