请问,我有一个jar包,想弄一个JavaDoc出来要怎么弄?我用Eclipse 3.5。要不要解压,还是要新建一个project??

解决方案 »

  1.   

    看来阁下还没明白,javadoc需要java源代码,要jar包有啥用?
      

  2.   

    如果jar文件里边是.java文件,导入eclipse再导出成javadoc文档即可……
    如果是.class就得先反编译一下了
      

  3.   

    jar包里有源码吗?
    那么导入Eclipse
    How to generate Javadoc with Eclipse
    ------------------------------------------------1. Project -> Generate Javadoc2. In the "Javadoc command" field - browse to find javadoc.exe
    • On the computers in the Clapp CS lab that is C:\JBuilderX\jdk1.4\bin\javadoc.exe
    • On other computers it would be <path_to_jdk_directory>\bin\javadoc.exe
    3. Check the box next to the project/package/file for which you are creating the javadoc4. In the "Destination" field browse to find the desired destination (for example, the root directory of the current project).5. Leave everything else as it is.6. Click "Finish"Javadoc should be in the destination folder. Open "index.html"
      

  4.   

    点了"Finish" 啥都没有出来。
      

  5.   

    默认值的话.应该会有doc这个文件夹生产
      

  6.   

    jar包里是源代码,不过是产生了doc这个文件夹,不过里面是空滴,不知道怎么回事
      

  7.   


    哈哈 Jar包里面不是.class字节码文件吗 想要生成doc需要源代码.java文件而且 文件中要有
    文档注释 /**...*/ 编译成的.class里面当然不会有注释了,注释再编译时被忽略掉了如果没有 文档/**...*/ 注释 使用javadoc 生成的当然是空的
      

  8.   

    这个包里是没编译的源代码,不是class文件。
      

  9.   


    javadoc: 错误 - 非法的软件包名称