Neil, thank you for sharing your experience with this matter.

Concerning NB's tool-menu „Java Platforms“ and its three tabs, tab 1 "Classes" and tab 2 "Sources“ und tab 3 "Javadoc“, let's take a closer look at tab 2 and tab 3, because after some additional testing I found the solution for the problem – which btw already exists with former OpenJDK and NB versions at least on Ubuntu/Debian Linux:

(a) NB compiles its editor's keyword Javadoc Ctrl+SPACE support only from the (Java) src.zip specified in tab 2.

(b) Only NB's editor right-click menu "Show Javadoc" uses the folder/URL specified in tab 3 to open an external browser with this Javadoc's html file.

In Ubuntu 20.04 LTS I had the optional package "openjdk-17-doc" installed, so (b) worked fine, but the optional package "openjdk-17-source" wasn't installed, so (a) didn't work. The problem was solved by installing the latter package, (clearing NB's cache) and re-start NB so that it re-scans its default "Java platform" and automatically fills all 3 tabs correctly.

So now we Ubuntu/Debian Linux users just need to ensure that actually all of the following three apt-packages are installed, in order to use NB 12.5 's Ctrl+SPACE Javadoc support also with OpenJDK 17 (and previous OpenJDK versions) :
 (1) openjdk-17-jdk
 (2) openjdk-17-doc
 (3) openjdk-17-source

Hopefully this helps other Ubuntu/Debian users, too?

Greetings,
Hans


Am 17.11.2021 um 14:49 schrieb Neil C Smith:
On Wed, 17 Nov 2021 at 13:24, Hans Grimmelshausen<far...@mail.de> wrote:
This is with Ubuntu 20.04 LTS and apt-installed OpenJDK 17.
Did you install the openjdk-17-doc package? Might help here.

For further testing, in the Java-Platform's Tab "Javadoc" I manually added the URL for the online
Javadoc:https://docs.oracle.com/en/java/javase/17/docs/
Possibly tryhttps://docs.oracle.com/en/java/javase/17/docs/api/ which
is what I've got in 12.6-rc3.

Neil



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to