简体   繁体   English

Netbeans v11.2 和 Oracle JDK13 javadocs 问题

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

I'm running NB 11.2 with Oracle JDK 13.0.1+9 NB's Java Platform ->> Javadocs (tab) is empty (no entries).我正在使用 Oracle JDK 13.0.1+9 NB 的 Java 平台运行 NB 11.2 ->> Javadocs(选项卡)为空(无条目)。

When I type (NB editor) java.math.当我输入(NB 编辑器) java.math. -or- java.nio. - 或 - java.nio. (examples), pop-open menus shows methods AND the full javadoc info for each method as expected. (示例),弹出式菜单按预期显示每个方法的方法和完整的 javadoc 信息。

But when I type java.sql.但是当我输入java.sql. -or- java.rmi. - 或 - 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 仅显示 package 和 class 定义和一条消息((THE MESSAGE)),内容如下:

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.

Here's a screenshot:这是一个屏幕截图:

Javadoc错误

So I added this URL to the Java Platforms ->> Javadocs tab: 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.没有帮助...同样的问题。

So I added this URL Java Platforms ->> Javadocs tab: 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/

Now, the results changed, but still wrong.现在,结果发生了变化,但仍然是错误的。 I've lost THE MESSAGE, but the package and class def shows with all blank text afterwards.我丢失了消息,但 package 和 class def 之后显示所有空白文本。

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.如果这不是 NB/Oracle URL 中的错误,那么它似乎记录得很差,这可以从 SO 上提出的问题数量证明。

Also, I'd like to download the whole javadoc.zip file and use a file ref instead of a URL.另外,我想下载整个 javadoc.zip 文件并使用文件 ref 而不是 URL。 Is this still possible?这还有可能吗?

I'm running NB 11.1 with Oracle JDK 13.0.1+9...我正在使用 Oracle JDK 13.0.1+9 运行 NB 11.1 ...

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 ". 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.不幸的是,我在 Apache NetBeans web 站点上的任何地方都看不到这一点。

So to successfully access Javadocs for JDK 13 in your applications:因此,要在您的应用程序中成功访问 JDK 13 的 Javadocs:

Also, I'd like to download the whole javadoc.zip file and use a file ref instead of a URL.另外,我想下载整个 javadoc.zip 文件并使用文件 ref 而不是 URL。 Is this still possible?这还有可能吗?

Yes:是的:

  • You can download the JDK 13 API Javadoc file jdk-13.0.1_doc-all.zip from here .您可以从此处下载 JDK 13 API Javadoc 文件jdk-13.0.1_doc-all.zip
  • There no need to unzip the downloaded file.无需解压缩下载的文件。
  • In NetBeans 11.2 open Tools > Java Platforms > select your JDK 13 platform entry.在 NetBeans 11.2 打开工具 > Java 平台 > select 您的 JDK 13 平台条目。
  • Click the Javadoc tab then click Add Zip/Folder...单击Javadoc选项卡,然后单击添加 Zip/文件夹...
  • Navigate to the downloaded file jdk-13.0.1_doc-all.zip , select it, then click Add Zip/Folder...导航到下载的文件jdk-13.0.1_doc-all.zip , select 它,然后单击Add Zip/Folder...
  • An entry for it will be added in the Platfrom Javadoc list.它的条目将添加到Platfrom Javadoc列表中。 Remove any https URLs you had added previously, so that it is the only Javadoc entry for JDK 13:删除您之前添加的所有https URL,使其成为 JDK 13 的唯一 Javadoc 条目:

    javadocTab

Once you have done all that, Javadoc should work fine for your JDK 13 applications.完成所有这些后,Javadoc 应该可以很好地用于 JDK 13 应用程序。 Here's an example using java.rmi package which was not working for you:这是一个使用java.rmi package 的示例,它不适合您:

rmiJavadoc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM