Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javadocs are not appearing on Apache netbeans for java 10

Netbeans Version: Apache NetBeans 9.0

Java version: Java 10

No matter what I do, I can't get the javadocs to appear and display method details on anything.

I've gone into the Java Platforms and into the Javadocs, I've set the Zip, unzipped and URL for the javadocs, but it just wont work...

Java Doc: jdk-10.0.1_doc-all

URL: https://docs.oracle.com/javase/10/docs/api

I couldn't find any answers anywhere, they all mentioned adding the docs like I already tried.

Edit Reply: Even with adding the 'java.base/' it still doesn't work. I even completely deleted netbeans and all appdata. Re-downloaded it, installed JDK11, and tried the docs again...but the SAME thing. Am I going insane??

enter image description here enter image description here

like image 709
DrakeWalker Avatar asked Jul 05 '18 01:07

DrakeWalker


1 Answers

The problem is caused by missing the java.base/ on the end of the locator.

java.base, starting with Java 9, is the definition of the foundational APIs of the Java SE platform.

Using https://docs.oracle.com/en/java/javase/11/docs/api/ as URL resource will fail.
Using https://docs.oracle.com/en/java/javase/11/docs/api/java.base/ as URL resource will work.

Same issue for file resources. Add java.base/ at the end of the former file locator and it works.

like image 83
Manfred Steiner Avatar answered Sep 25 '22 12:09

Manfred Steiner