I ran into this problem. This is because I used the JRE, not the JDK JRE.
First update the default JRE:
- Go to Window> Preferences> Java> Installed JREs
- Make sure your JDK JRE is used. If not, add it:
- Add> Standard Virtual Machine> Point "JRE Home" to
<JDK directory, not./bin>
>> OK - Go to Window> Preferences> Java> Installed JREs> Runtime.
- Ensure that the JDK JRE you added is the default JRE for your chosen Java environment.
Then update your existing project to use this JRE:
- Go to Project> Properties> Java Build Path> Libraries
- Scroll down to where you see the JRE System Library
- Click it, then the "Edit" button.
- Change the selection (either the runtime or the alternative JRE) so that it points to your JDK JRE.
- Click Finish
You must have JavaDocs for the JRE library now! πβ
If not, you may need to update your JavaDoc settings by choosing Window> Preferences> Java> Compiler> Javadoc and uncheck "/ apply / double-check / apply" " Process Javadoc comments
to Process Javadoc comments
.
source share