I just upgraded to JDK 1.7, which of course forced me to make some changes to my project. I'm working in Eclipse Helios. I finished all my changes so as to get rid of all the warning messages. Everything compiles and runs fine. Then I ran the javadoc utility. I wound up with a rather strange looking javadocs. Nothing at all looking like the javadocs generated for the JDK 1.7. Mine doesn't have any formatting whatsoever. Everything is in point form. After the javadoc finished it had one warning: warning: [options] bootstrap class path not set in conjunction with -source 1.6
I have no idea as to what to do about that in Eclipse. I made sure that all the classpath settings pointed to the new JDK libraries. So I don't know what else I need to fix to get the javadocs looking properly. I assume they are suppose to looke like the JDK 1.7 javadocs? Please see attached picture for an example of what one of my classes looks like from the generated javadocs. Please advise.
You were right. That was it. I wound up going to the JDK 1.7 javadocs and downloading their stylesheet.css file. I put it in a special directory within the JDK1.7 folder on my hard drive and referenced it from Eclipse. Never had to do that before, but it worked.
Alan Shiers wrote:You were right. That was it. I wound up going to the JDK 1.7 javadocs and downloading their stylesheet.css file. I put it in a special directory within the JDK1.7 folder on my hard drive and referenced it from Eclipse. Never had to do that before, but it worked.
First time poster here.
Thanks for this thread! I had just upgraded to Eclipse Juno and my javadocs for Java 7 were looking exactly like the pics posted above (Java 6 was looking normal though). Here's the link for the stylesheet...
Since Google doesn't provide many helpful links on this particular issue (that, or my Google Fu is weak sauce), here's more wordy solution that worked for me:
I copied the linked-to file above into a text editor, saved it as stylesheet.css, and put it in the jdk1.7.0 folder. Then, when generating a javadoc on Eclipse, on the second page of Javadoc Generation, I clicked "Style sheet" and browsed to the file I had just dropped in there. Now my javadocs have Java 7 goodness!