How to generate java doc in MAC

 

How to generate JavaDoc?

Method1: using IDEA

  1. Tools -> Generate JavaDocs



  1. Check the result in your browser



Method 2: using terminal to generate javadoc

  1. open in Finder





  1. find the directory

  2. open terminal

  3. cd "the directory"

  4. typing the commond: javadoc -encoding UTF-8 -charset UTF-8 "java file"



  1. Then you can see your java document in the browser



Comments