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.
This seems to occur for a Jar recipe which contains multiple files with the same name and same import statement. See attached Jar recipe. If necessary, source can also be provided. To reproduce: 1) Create a jar recipe 2) Add some directories which contain source files 3) Compile the Jar recipe 4) Move the Jar recipe by copy/paste from one mounted filesystem to another 5) Recompile the Jar recipe Result: Some compile errors appear in the compiler tab of the Output window: index$jsp.java [13:1] duplicate class: org.apache.jsp.index$jsp ... I tried to fix this jar Content file by removing all contents, re-adding them then recompiling the jar recipe. Result: the same compile error. If I create a new jar recipe then add the same contents, recompile then compilation succeeds. (Note this also affects a Jar recipe that is transferred to another computer, which also makes this Jar recipe unportable)
Created attachment 6034 [details] jar content file before copying -should be valid
yes, jar content files are non-transferable. Not only between computers but also 2 projects in the IDE for details see issue s #21326 and #18916. The bugs are inherent to the current design and should be fixed by the intruduction of new projects in Netbeans 4.0. I'll check the copying between various filesystems. BTW: does it work correctly for you when you copy the recipe within one filesystem?
the copying of jarrecipe according to your repro steps works for me in the development build 200206030100 and the FFj4.0 EA build 020507. I believe the bug is a dublicate of the above mentioned bugs. It happens anytime you chnage the enviroment of the jar recipe (eg. remove a filesystem, change filesystem's root, change projects or anything else that will break the link between the jar content file and the IDE enviroment) I'll mark the issue as duplicate of #21326. Please reopen the bug if you disagree and are sure you're not changing any filesystem , but only copy the file. In that case please provide me with more detailed information on how to reproduce the problem and any error messages you receive. Thanks. *** This issue has been marked as a duplicate of 21326 ***
Resolved for 3.4 or earlier, no new info since then -> closing.