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.
Summary: | Java tutorial projects cannot be opened | ||
---|---|---|---|
Product: | third-party | Reporter: | olamagato <olamagato> |
Component: | -- Other -- | Assignee: | issues@third-party <issues> |
Status: | NEW --- | ||
Severity: | blocker | CC: | jglick, mkubec, tzezula |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://java.sun.com/docs/books/tutorial/uiswing/examples/zipfiles/components-TableFilterDemoProject.zip | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 42686 |
Description
olamagato
2009-09-16 14:23:31 UTC
Please, describe more precisely what is your actual problem. http://wiki.netbeans.org/IssuezillaRules I try add jdk tutorial swing examples with netbeans project and i receive exceptions. Many of this examples not load to project view. I compared project.xml files from loaded projects and not loaded. Only difference with both are exist or non-exist "<test-roots />" node in project.xml. Please add java swing examples by project group->new group, select "Folder of projects" and select "tutorial\uiswing\examples" in unpacked sun java tutorial. Some of projects (with project.xml and <test-roots /> node) will be accepted but most not (~90%). In my opinion this is bug. Especial for java newbies. I can recreate or fix project.xml files in older tutorial files but this is not fully good solution. And no solution for java and netbeans newbies (tutorial instructions not work). (Sorry for my weak english). The problem is obvious, the project files are not valid (they are missing mandatory test-roots element). The j2seproject works fine even if the element is not a part of the project.xml (behaves in the same way as if there is empty test-roots element). But the Ant Based Project throws exception from XML verifier. The correct fix is to fix the JDK examples, unfortunately I have no idea who maintains them. In the NB 6.8, at least in the dev builds, the project.xml files are not verified => no exception is throws and everything seems to work fine. Reassigning to ant/project as I am not sure if the verification will be disabled also in the release. If I try to open the project in the URL field in a NB dev build, it is correctly rejected as malformed. project.xml verification cannot be disabled to my knowledge. ProjectXMLCatalogReader.autocorrect could in principle try to insert empty elements that a schema says must be present, but this seems more dangerous than the autocorrections it currently performs. Probably better to just fix those projects known to be broken. I do not know of any version of the IDE which would have deleted <test-roots> via GUI manipulation. I will try to contact the tutorial team about these errors. Sent a form submission; no way of tracking progress. The test-roots element was always mandatory. |