5

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.

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

3 Comments

Hi, i already have installed the last openjdk: "sudo apt-get install openjdk-6-jre", but don't appear the command to execute the javadoc on the javadoc command text box. It's not the correct openjdk?
@Piperoman - the JRE just comes with the runtime environment. OpenJDK is broken into modules and you need the development bundle in order to get the javadoc command.
The name of this package is openjdk-6-jdk, the -jre package is only the Runtime Environment, not the Development Kit.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.