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.
When using Tools->Install New JavaBean on Jars from BDK1.1, the first bean in the manifest is not apparently seen. If only one bean is present, receive the "Selected Jar file does not contain any JavaBeans Components" error box. For other files, the top one in the manifest is not in the "select JavaBean" dialog box. Examples (all JARS from BDK1.1) buttons.jar: Manifest: Manifest-Version: 1.0 Name: sunw/demo/buttons/OurButton.class Java-Bean: True Created-By: 1.2.2 (Sun Microsystems Inc.) Name: sunw/demo/buttons/OrangeButton.ser Java-Bean: True Name: sunw/demo/buttons/BlueButton.ser Java-Bean: True Name: sunw/demo/buttons/ExplicitButton.class Java-Bean: True Select JavaBeans Dialog: OrangeButton BlueButton ExplicitButton EventMonitor.jar Manifest: Manifest-Version: 1.0 Name: sunw/demo/encapsulatedEvents/EventMonitor.class Java-Bean: True Created-By: 1.2.2 (Sun Microsystems Inc.) This generated the "Selected Jar file does not contain any JavaBeans Components" error This problem existed in several builds, all using J2SE 1.3 3.0 (Win 98) 3.1 Build 16 (Win 98) Forte CE Update 2 (Win 2K)
I think this is caused by one of these two things: - the manifest is in wrong format, and/or - there's a bug in java.util.jar.Manifest (which processes the manifest file). It works if you add an empty line after first line "Manifest-Version: 1.0". Each section for a bean must begin with "Name: ..." line; sections are delimited by empty line. This is the way how Manifest class recognizes entries in the file...
*** Issue 16365 has been marked as a duplicate of this issue. ***
*** Issue 17649 has been marked as a duplicate of this issue. ***
*** Issue 18961 has been marked as a duplicate of this issue. ***
*** Issue 14931 has been marked as a duplicate of this issue. ***
Resolved for 3.3.x or earlier, no new info since then -> closing.