NetBeans is able to output Java source code as HTML directly from the "File" menu:
- Select a Java Source File in the "Projects" Window
- Choose: Print To HTML
- Choose Between Print To File or Print To Clipboard
The output is fairly customizable with inlined CSS.
NEW workshop: Building HTML 5 Applications Without Frameworks, Full week in December 2016: from Java EE 7 Bootstrap, Effective, Architectures over Testing to Microservices
On demand workshops: Java EE 7: Bootstrap, Effective, Testing and Microservices available for streaming.