Netbeans v11.2 and Oracle JDK13 javadocs issues

╄→гoц情女王★ 提交于 2020-01-24 20:16:14

问题


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

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.

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.

Here's a screenshot:

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/

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

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.

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


回答1:


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

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.

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.

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

Yes:

  • 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:

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:



来源:https://stackoverflow.com/questions/58886235/netbeans-v11-2-and-oracle-jdk13-javadocs-issues

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!