Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate javadoc using ubuntu + eclipse to my project

My java code has been commented using /** structure for each function. So i want to generate all documentation automatically using:

Project > Generate javadoc

But by default, on eclipse javadoc is not installed. I have readed many tutorial but don`t are working for me.

The problem is, i don't know what Javadoc command i must use on linux. In windows i must look for the javadoc.exe

Someone know the steps to do it?

Thanks in advance.

EDIT 1: SOLUTION Installing on ubuntu:

sudo apt-get install openjdk-6-jdk

And restarting eclipse the javadoc command appared: /usr/bin/javadoc and run perfectly. Thanks all.

like image 786
vgonisanz Avatar asked Feb 21 '12 15:02

vgonisanz


1 Answers

You probably only have the runtime version of OpenJDK installed. To get the development tools run the following command:

sudo yum install java-1.6.0-openjdk-devel.x86_64

After the install you should be able to run the javadoc command as normal.

like image 132
Perception Avatar answered Oct 11 '22 18:10

Perception