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.
Product Version: NetBeans IDE Dev (Build 201505160001) Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14 System: Windows 7 version 6.1 running on amd64; UTF-8; pl_PL (nb) I've created a new platform application, added a module, then added a Window (TopComponent) to it, fixed errors from bug 252036 and bug 252173 (missing import of NbBundle). When I try to build the module I have the error: ant -f R:\\Work\\DemoApp\\SomeCode -Dcontinue.after.failing.tests=true run taskdefs: common-init: projectized-common.basic-init: basic-init: files-init: nbm-license-init: build-init: Scanning for modules in C:\Program Files\NetBeans Dev 201505160001\platform Scanning for modules in suite R:\Work\DemoApp Distilling R:\Work\DemoApp\build\public-package-jars\org-netbeans-modules-settings.jar from [C:\Program Files\NetBeans Dev 201505160001\platform\modules\org-netbeans-modules-settings.jar] Distilling R:\Work\DemoApp\build\public-package-jars\org-openide-awt.jar from [C:\Program Files\NetBeans Dev 201505160001\platform\modules\org-openide-awt.jar] Distilling R:\Work\DemoApp\build\public-package-jars\org-openide-util.jar from [C:\Program Files\NetBeans Dev 201505160001\platform\lib\org-openide-util.jar] Distilling R:\Work\DemoApp\build\public-package-jars\org-openide-util-lookup.jar from [C:\Program Files\NetBeans Dev 201505160001\platform\lib\org-openide-util-lookup.jar] Distilling R:\Work\DemoApp\build\public-package-jars\org-openide-windows.jar from [C:\Program Files\NetBeans Dev 201505160001\platform\modules\org-openide-windows.jar] init: up-to-date: compile: Compiling 1 source file to R:\Work\DemoApp\SomeCode\build\classes R:\Work\DemoApp\SomeCode\src\org\cezariusz\demo\app\code\MyEditorTopComponent.java:33: error: cannot access HelpCtx public final class MyEditorTopComponent extends TopComponent { class file for org.openide.util.HelpCtx not found C:\Program Files\NetBeans Dev 201505160001\harness\common.xml:224: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 1 second) And the same when I clean and build the application: platform.download: ant -f R:\\Work\\DemoApp clean build Deleting directory R:\Work\DemoApp\build\testuserdir testuserdir-delete: suite-jnlp.clean: clean: org.cezariusz.demo.app.code.taskdefs: org.cezariusz.demo.app.code.common-init: org.cezariusz.demo.app.code.projectized-common.basic-init: org.cezariusz.demo.app.code.basic-init: org.cezariusz.demo.app.code.files-init: org.cezariusz.demo.app.code.testuserdir-delete: org.cezariusz.demo.app.code.clean: branding: Created dir: R:\Work\DemoApp\build\cluster Building jar: R:\Work\DemoApp\build\cluster\core\locale\core_demoapp.jar Building jar: R:\Work\DemoApp\build\cluster\modules\locale\org-netbeans-core-windows_demoapp.jar files-init: release: Created dir: R:\Work\DemoApp\build\cluster\config\Modules build: org.cezariusz.demo.app.code.taskdefs: org.cezariusz.demo.app.code.common-init: org.cezariusz.demo.app.code.projectized-common.basic-init: org.cezariusz.demo.app.code.basic-init: org.cezariusz.demo.app.code.files-init: org.cezariusz.demo.app.code.nbm-license-init: org.cezariusz.demo.app.code.build-init: Created dir: R:\Work\DemoApp\build\public-package-jars Scanning for modules in C:\Program Files\NetBeans Dev 201505160001\platform Scanning for modules in suite R:\Work\DemoApp Distilling R:\Work\DemoApp\build\public-package-jars\org-netbeans-modules-settings.jar from [C:\Program Files\NetBeans Dev 201505160001\platform\modules\org-netbeans-modules-settings.jar] Distilling R:\Work\DemoApp\build\public-package-jars\org-openide-awt.jar from [C:\Program Files\NetBeans Dev 201505160001\platform\modules\org-openide-awt.jar] Distilling R:\Work\DemoApp\build\public-package-jars\org-openide-util.jar from [C:\Program Files\NetBeans Dev 201505160001\platform\lib\org-openide-util.jar] Distilling R:\Work\DemoApp\build\public-package-jars\org-openide-util-lookup.jar from [C:\Program Files\NetBeans Dev 201505160001\platform\lib\org-openide-util-lookup.jar] Distilling R:\Work\DemoApp\build\public-package-jars\org-openide-windows.jar from [C:\Program Files\NetBeans Dev 201505160001\platform\modules\org-openide-windows.jar] org.cezariusz.demo.app.code.init: org.cezariusz.demo.app.code.up-to-date: org.cezariusz.demo.app.code.compile: Created dir: R:\Work\DemoApp\SomeCode\build\classes Compiling 5 source files to R:\Work\DemoApp\SomeCode\build\classes R:\Work\DemoApp\SomeCode\src\org\cezariusz\demo\app\code\MyEditorTopComponent.java:33: error: cannot access HelpCtx public final class MyEditorTopComponent extends TopComponent { class file for org.openide.util.HelpCtx not found C:\Program Files\NetBeans Dev 201505160001\harness\suite.xml:187: The following error occurred while executing this line: C:\Program Files\NetBeans Dev 201505160001\harness\common.xml:224: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 1 second)
Created attachment 153815 [details] Java file
Created attachment 153816 [details] Form file
Tomasi, any clue? Thanks.
It happens in Linux too...
I think you've forgotten to add the HelpCtx lib to the dependencies. After this you need Lookup as a dependency too. Please comment whether this helped or not.
You need to have the org.openide.util.ui module in your application, the dependency on org.openide.util is not enough. For dependencies on org.openide.util older than 9.3 the dependency on org.openide.util.ui is automatically injected by build and by module system in runtime. For newer you need to add the dependency yourself.