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.

Bug 238857

Summary: error: package org.openide.util does not exist
Product: guibuilder Reporter: tingJava2013
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description tingJava2013 2013-11-27 08:43:27 UTC
I create NetBeans Modules, then JFrame, then JTabbedPane, then add JPanel, the code generated has this line: aJTabbedPane.addTab(org.openide.util.NbBundle.getMessage(etc..); triggering compile error of package org.openide.util does not exist.

However, skipping the creation of NetBeans Modules and going to Java Class directly, the code generated has this line: aTabbedPane.addTab("title", aJPanel); which compiles ok.

I have not touched Ant.
Comment 1 Tomas Pavek 2013-11-27 13:48:40 UTC
In NetBeans modules the GUI builder expects that org.openide.util is available. It's quite unusual a real module would not have this dependency. Bug 196497 is about that the GUI builder should add the dependency automatically. For now you need to add it manually. So go to project properties, libraries, and add org.openide.util and also org.openide.util.lookup.

You can also turn off the automatic internationalization of the GUI form if you don't want it at all (see properties of the root node in Navigator - for opened form).

*** This bug has been marked as a duplicate of bug 196497 ***