Netbeans v11.2和Oracle JDK13 javadocs问题 [英] Netbeans v11.2 and Oracle JDK13 javadocs issues

查看:159
本文介绍了Netbeans v11.2和Oracle JDK13 javadocs问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将NB 11.2与Oracle JDK 13.0.1 + 9一起运行 NB的Java平台->> Javadocs(标签)为空(无条目).

I'm running NB 11.2 with Oracle JDK 13.0.1+9 NB's Java Platform ->> Javadocs (tab) is empty (no entries).

当我键入(NB编辑器)java.math.-或-java.nio.(示例)时,弹出菜单会按预期显示方法以及每种方法的完整javadoc信息.

When I type (NB editor) java.math. -or- java.nio. (examples), pop-open menus shows methods AND the full javadoc info for each method as expected.

但是,当我键入java.sql.-或-java.rmi.(示例)时,得到列出的方法,但是Javadoc仅显示包和类定义以及一条消息((THE MESSAGE)),内容为:

But when I type java.sql. -or- java.rmi. (examples), I get the methods listed, BUT Javadoc shows just the package and class definition and a message ((THE MESSAGE)) that reads:

Javadoc not found. Either Javadoc documentation for this item does not exist or you have not added specified Javadoc in the Java Platform Manager or the Library Manager.

以下是屏幕截图:

因此我将此URL添加到了Java Platforms->> Javadocs选项卡中: https://docs.oracle.com/en/java/javase/13/docs/api/

So I added this URL to the Java Platforms ->> Javadocs tab: https://docs.oracle.com/en/java/javase/13/docs/api/

没有帮助...同样的问题.

No help...same problem.

因此,我添加了以下URL Java Platforms->> Javadocs选项卡: https://docs.oracle.com/en/java/javase/13/docs/api/java.sql/

So I added this URL Java Platforms ->> Javadocs tab: https://docs.oracle.com/en/java/javase/13/docs/api/java.sql/

现在,结果已更改,但仍然错误.我丢失了MESSAGE,但之后显示的包和类def带有所有空白文本.

Now, the results changed, but still wrong. I've lost THE MESSAGE, but the package and class def shows with all blank text afterwards.

如果这不是NB/Oracle URL中的错误,那么记录似乎很少,这可以通过在SO上询问的大量问题来证明.

If this isn't a bug in NB/Oracle URL, then it seems very poorly documented which is evidenced by the sheer number of questions asked on SO.

此外,我想下载整个javadoc .zip文件,并使用文件ref代替URL.还是有可能吗?

Also, I'd like to download the whole javadoc .zip file and use a file ref instead of a URL. Is this still possible?

推荐答案

我正在运行带有Oracle JDK 13.0.1 + 9的NB 11.1 ...

I'm running NB 11.1 with Oracle JDK 13.0.1+9...

这本身就是一个问题.尽管NetBeans 11.1似乎可以正常工作,但它不支持JDK 13的使用.在NetBeans产品管理器中:"

That's a problem in itself. While it may appear to work, NetBeans 11.1 does not support the use of JDK 13. From the Product Manager for NetBeans: "Apache NetBeans 11.1 supports JDK 8 to JDK 12". Unfortunately I can't see this being explicitly stated anywhere on the Apache NetBeans web site.

因此,要在您的应用程序中成功访问JDK 13的Javadocs:

So to successfully access Javadocs for JDK 13 in your applications:

  • Download and install Apache NetBeans 11.2.
  • In NetBeans 11.2, use Tools > Java Platforms to add JDK 13.
  • Follow the instructions below to install a local copy of the Javadoc for JDK 13.

此外,我想下载整个javadoc .zip文件并使用一个文件 ref而不是URL.还是有可能吗?

Also, I'd like to download the whole javadoc .zip file and use a file ref instead of a URL. Is this still possible?

是:

  • 您可以下载JDK 13 API Javadoc文件 jdk-13.0.1_doc-all.zip
  • You can download the JDK 13 API Javadoc file jdk-13.0.1_doc-all.zip from here.
  • There no need to unzip the downloaded file.
  • In NetBeans 11.2 open Tools > Java Platforms > select your JDK 13 platform entry.
  • Click the Javadoc tab then click Add Zip/Folder...
  • Navigate to the downloaded file jdk-13.0.1_doc-all.zip, select it, then click Add Zip/Folder...
  • An entry for it will be added in the Platfrom Javadoc list. Remove any https URLs you had added previously, so that it is the only Javadoc entry for JDK 13:

完成所有这些操作后,Javadoc应该可以在您的JDK 13应用程序中正常运行.这是一个使用java.rmi软件包的示例,该示例不适用于您:

Once you have done all that, Javadoc should work fine for your JDK 13 applications. Here's an example using java.rmi package which was not working for you:

这篇关于Netbeans v11.2和Oracle JDK13 javadocs问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆