简体   繁体   English

如何使用ubuntu + eclipse生成Javadoc到我的项目

[英]How to generate javadoc using ubuntu + eclipse to my project

My java code has been commented using /** structure for each function. 我的Java代码已使用/ **结构注释了每个函数。 So i want to generate all documentation automatically using: 所以我想使用以下方法自动生成所有文档:

Project > Generate javadoc

But by default, on eclipse javadoc is not installed. 但是默认情况下,在eclipse上未安装javadoc。 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. 问题是,我不知道在Linux上必须使用什么Javadoc命令。 In windows i must look for the javadoc.exe 在Windows中,我必须寻找javadoc.exe

Someone know the steps to do it? 有人知道该怎么做吗?

Thanks in advance. 提前致谢。

EDIT 1: SOLUTION Installing on ubuntu: 编辑1:解决方案在ubuntu上安装:

sudo apt-get install openjdk-6-jdk

And restarting eclipse the javadoc command appared: /usr/bin/javadoc and run perfectly. 并重新启动Eclipse,出现的Javadoc命令如下:/ usr / bin / javadoc并完美运行。 Thanks all. 谢谢大家

You probably only have the runtime version of OpenJDK installed. 您可能只安装了OpenJDK的运行时版本。 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. 安装后,您应该能够正常运行javadoc命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM