Any way to view javadocs in Idea? Follow
I have tried every combination of adding javadocs to Idea 4.5.4 using file\settings\paths\javadoc tab without success for most javadoc locations - I did manage to get JDK docs to work once. I am trying a simple example with jfreechart docs. The index.html files live in C:\work\jfreechart-0.9.21\javadoc which I have added but still Idea complains when I use shift/F1 on JFreeChart methods - message is --- the documentation cannot be found..please add..
But I have added the path, url, and every sub directory below it. I have restarted Idea, the machine, friends machine as Idea usually requires - still no go.
thanks in advance.
Please sign in to leave a comment.
Jdkdocs, the simplest way: extract the docs into the jdk dir. When you add
a new jdk it picks the docs automatically.
Library docs, on the paths->libs->[module/project/global] libraries there
I suppose the libs->javadoc tab is only for module docs: docs to this module
I have been having exactly the same problem - both with 4.5 and 5.0. I can view external javadocs if I attach the javadoc path to a global library but - no matter what I do in the Project Settings/Modules/Javadoc tab, it just doesn't work. I know I properly specify the path to the folder where the javadoc's index.html resides (or the URL, for that matter) IDEA still doesn't find it. I hate to put everything into my "global" libs, but that's the only way I was able to get the IDE to locate the docs. It used to work just fine for me in the earlier 4.* versions. I know, some lame plug-ins sometimes screw things up, but I don't think I have any of those installed. Can anyone please shed some light on this? Many thanks!
Module|Javadoc tab is for module itself javadocs. If you want to attach javadocs
to whatever level library there's a button "Attach Javadocs".
"Develop with pleasure!"
To clarify Maxim's brief explanation - for access to Javadocs associated with libraries, edit the library in the 'Libraries' tab and use the 'Attach Javadoc' or 'Specify javadoc URL' buttons (the 'Attach Sources' button is also very useful e.g. via Ctrl-Shift-I).
The Javadoc tab allows you to specify where the Javadoc is for the module you're developing.