Skip to content

Instantly share code, notes, and snippets.

@tato469
Created July 23, 2013 10:24
Show Gist options
  • Select an option

  • Save tato469/6061397 to your computer and use it in GitHub Desktop.

Select an option

Save tato469/6061397 to your computer and use it in GitHub Desktop.
How to generate automatic UML in your Android project + eclipse with javadoc
How to generate UML in your Android project + eclipse with javadoc:
First download apiviz from: https://code.google.com/p/apiviz/
0. extract the zip, for example in y case I did: C:\Program Files\Java\apiviz-1.3.2.GA
1. Project -> Generate JavaDocRight-click on a Java project.
2. Choose the 'Use custom doclet' radio button.
Enter 'org.jboss.apiviz.APIviz' in the 'Doclet name' field.
In 'Doclet class path' field set the location of the jar. C:\Program Files\Java\apiviz-1.3.2.GA\jar\apiviz-1.3.2.GA.jar
3. Click the 'Next' button. (Do not click the 'Finish' button yet.)
Specify '-d' and '-sourceclasspath' option explicitly in the 'Extra Javadoc options' area:
-d /home/trustin/projectX/doc
-sourceclasspath /home/trustin/projectX/bin/classes
In my case:
-d "C:\Users\me\Documents\ANDROID\myProject\doc"
-sourceclasspath "C:\Users\me\Documents\ANDROID\myProject\bin\classes"
Note if you have some problems with javadoc start, add to VM options the path of android-sdk jar:
In my case: -bootclasspath "C:\Program Files (x86)\Android\android-sdk\platforms\android-16\android.jar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment