Search code examples
javajavadocjava-7

Javadoc formatting broken since upgrading to Java 7


Since upgrading my project to Java 7, the generated documentation now has broken formatting.

How to fix this?


Solution

  • Java 7 changed the CSS stylesheet used by Javadoc, as the documentation now has different formatting of various page elements.

    You can download the correct stylesheet from Oracle:

    http://docs.oracle.com/javase/7/docs/api/stylesheet.css