You're right, i was missing a few additional library references. The
Utility API and the Lookup API. Not that obvious from the error message.
Thanks

On Sun, Apr 21, 2019 at 5:22 PM Geertjan Wielenga <geert...@apache.org>
wrote:

> Even in the comments of that video you can see the solution. Add a
> dependency on the module providing HelpCtx.
>
> Gj
>
> On Sun, 21 Apr 2019 at 23:01, Alex O'Ree <alexo...@apache.org> wrote:
>
>> Thanks for the link. I'm walking through the video now and hit a snag on
>> the "make a new window" part. This is with 8.2 NB. My NB11 has a similar
>> error (cannot access HelpCtx
>>   class file for org.openide.util.HelpCtx not found)
>>
>> error: cannot access Lookup
>> public class MyTopComponent extends TopComponent {
>>   class file for org.openide.util.Lookup not found
>> warning: Supported source version 'RELEASE_6' from annotation processor
>> 'org.netbeans.modules.openide.util.NbBundleProcessor' less than -source
>> '1.7'
>> error: cannot find symbol
>>         setDisplayName("hello world");
>>   symbol:   method setDisplayName(String)
>>   location: class MyTopComponent
>> C:\Program Files\NetBeans 8.2\harness\common.xml:225: Compile failed; see
>> the compiler error output for details.
>> BUILD FAILED (total time: 2 seconds)
>>
>> If i remove the call to setDisplayName, i get an angry error message
>>
>>
>> warning: Supported source version 'RELEASE_6' from annotation processor
>> 'org.netbeans.modules.openide.util.NbBundleProcessor' less than -source
>> '1.7'
>> An exception has occurred in the compiler (1.8.0_101). Please file a bug
>> against the Java compiler via the Java bug reporting page (
>> http://bugreport.java.com) after checking the Bug Database (
>> http://bugs.java.com) for duplicates. Include your program and the
>> following diagnostic in your report. Thank you.
>> java.lang.NullPointerException
>>     at
>> com.sun.tools.javac.comp.Check.checkClassOverrideEqualsAndHash(Check.java:2027)
>>     at
>> com.sun.tools.javac.comp.Check.checkClassOverrideEqualsAndHashIfNeeded(Check.java:2017)
>>     at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4274)
>>     at com.sun.tools.javac.comp.Attr.attribClass(Attr.java:4200)
>>     at com.sun.tools.javac.comp.Attr.attrib(Attr.java:4175)
>>     at
>> com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1248)
>>     at
>> com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901)
>>     at
>> com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860)
>>     at com.sun.tools.javac.main.Main.compile(Main.java:523)
>>     at com.sun.tools.javac.main.Main.compile(Main.java:381)
>>     at com.sun.tools.javac.main.Main.compile(Main.java:370)
>>     at com.sun.tools.javac.main.Main.compile(Main.java:361)
>>     at com.sun.tools.javac.Main.compile(Main.java:56)
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>     at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>     at java.lang.reflect.Method.invoke(Method.java:498)
>>     at
>> org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:58)
>>     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1395)
>>     at org.netbeans.nbbuild.CustomJavac.compile(CustomJavac.java:125)
>>     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1121)
>>     at org.netbeans.nbbuild.CustomJavac.execute(CustomJavac.java:106)
>>     at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
>>     at sun.reflect.GeneratedMethodAccessor223.invoke(Unknown Source)
>>     at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>     at java.lang.reflect.Method.invoke(Method.java:498)
>>     at
>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>>     at org.apache.tools.ant.Task.perform(Task.java:348)
>>     at org.apache.tools.ant.Target.execute(Target.java:435)
>>     at org.apache.tools.ant.Target.performTasks(Target.java:456)
>>     at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
>>     at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
>>     at
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>>     at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
>>     at
>> org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:286)
>>     at
>> org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:599)
>>     at
>> org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
>>
>>
>> On Sun, Apr 21, 2019 at 4:20 PM Geertjan Wielenga <geert...@apache.org>
>> wrote:
>>
>>> But best is to buy this: https://leanpub.com/nbp4beginners
>>>
>>> Gj
>>>
>>> On Sun, Apr 21, 2019 at 10:18 PM Geertjan Wielenga <geert...@apache.org>
>>> wrote:
>>>
>>>> https://netbeans.org/features/platform/all-docs.html
>>>>
>>>> Gj
>>>>
>>>> On Sun, Apr 21, 2019 at 9:59 PM Alex O'Ree <alexo...@apache.org> wrote:
>>>>
>>>>> Are there any how to guides on netbeans plugin development?
>>>>>
>>>>> I found this:
>>>>> http://wiki.netbeans.org/IntroNetBeansPluginDev
>>>>> which was last updated in 2013 and doesn't seem to be accurate any
>>>>> longer.
>>>>>
>>>>

Reply via email to