Hello,

Yes, I know the versions are quite old. It's a little embarrassing. 
Unfortunately, we didn't have the chance to update earlier in our ESA SNAP 
project. We were still using Java 1.8 too.
So, we now want to update step by step and not with one giant leap to the 
latest versions.
We try to get run 11.3 of NetBeans Platform with JDK11.

Now my problem.
After updating the Java help is not working anymore. The default menu entry 
Help/Help Contents is not added to the menu. And when invoking the help 
manually nothing happens.
Debugging revealed that in HelpCtx.display() the call to 
Lookup.getDefault().lookupAll(Displayer.class) to not return an implementation.

I've seen this issue [NETBEANS-462] Java Help class cannot be found - ASF JIRA 
(apache.org)<https://issues.apache.org/jira/browse/NETBEANS-462> and the last 
comment that dependencies to org-netbeans-modules-javahelp and javahelp  are 
needed, which I have
    <dependencies>
        <dependency>
            <groupId>org.netbeans.api</groupId>
            <artifactId>org-netbeans-modules-javahelp</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.help</groupId>
            <artifactId>javahelp</artifactId>
        </dependency>
    </dependencies>

Versions are defined in the parent pom.
Ther are multiple modules containing help. But even not all depend on those 2 
modules at least the main help module should be shown and at least the 
Displayer implementation should be loaded, right?.
While building the application I don't see any warning regarding the help which 
might indicate a problem. And when starting the app, I see in the logs that the 
NB javahelp module is loaded.
When I try to instantiate the Displayer implementation JavaHelp directly I get 
a ClassNotFoundException. Which I do understand. The package is not exported. 
Does the HelpCtx, respectively the Lookup, have the same issue?
I have found no documentation about what needs to be done differently now.

I'm now a bit lost. Can someone give me a hint what I'm doing wrong.
Thank you.

Ciao
  Marco

--
____________________________________________________________
Marco Peters
Brockmann Consult GmbH
Tel:  +49 (0)40 696389 305
Email: 
marco.pet...@brockmann-consult.de<mailto:marco.pet...@brockmann-consult.de>
Skype: marco.peters.bc
Twitter: @MarPet_BC
____________________________________________________________
Brockmann Consult GmbH
Chrysanderstr. 1
D-21029 Hamburg, Germany
Amtsgericht Hamburg HRB 157689
Geschäftsführer Dr. Carsten Brockmann
http://www.brockmann-consult.de<http://www.brockmann-consult.de/>
Twitter: @BrockmannCon
____________________________________________________________


Reply via email to