How to generate Javadoc from command line

Damir picture Damir · Jan 4, 2011 · Viewed 143.9k times · Source

Can anybody show me how to generate Javadoc from command line?

My project contains the package com.test and I want to put the generated documentation in files located in a specific folder like this: C:/javadoc/test.

Answer

Arun P Johny picture Arun P Johny · Jan 4, 2011

You can refer the javadoc 8 documentation

I think what you are looking at is something like this:

javadoc -d C:\javadoc\test com.test