Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Java by (9.5k points)

Let’s say below is the code I’ve. When I try to hover over Calendar I can see the Java 8 documentation in Eclipse. When I mouse over getInstance, I get an error:

Calendar myCalendar = Calendar.getInstance();

The error message I got is:

Note: This element has no attached source and the Javadoc could not be found in the attached Javadoc.

Can anyone tell me what I’m doing wrong here?

1 Answer

0 votes
by (19.7k points)

You have to set the installed JRE to JDK 8 like below:

Window -> Preferences -> Java -> Installed JRE -> Edit -> Directory and selecting the JDK 8 installation folder

Interested in Java? Check out this Java tutorial by Intellipaat. 

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94k users

Browse Categories