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.
Java Card Classic projects are only allowed to have a single Java package. Need an SPI to suppress visibility of the Java Package and Folder templates which can be placed in a Project's lookup, similar to PreferredTemplates, e.g. public interface getSuppressedTemplates { /**Array of paths to templates in the system filesystem**/ public String[] getSuppressedTemplates(); } and changes in NewAction to eliminate these templates from those visible in both the New popup menu on packages/folders, and also the New File wizard. Suppression of templates should be specific to the source directories of the project - i.e. the user should be able to create a new folder in the project root - just not in any source directory of the project.
See http://wiki.netbeans.org/JavaCardTODOs for details
Change of default owner.
There are many other ways in which an unsuspecting user might wind up with >1 package containing Java classes. Better to just display an error during the build if this happens, explaining how to correct the problem.