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"
如果是.class就得先反编译一下了
那么导入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"
哈哈 Jar包里面不是.class字节码文件吗 想要生成doc需要源代码.java文件而且 文件中要有
文档注释 /**...*/ 编译成的.class里面当然不会有注释了,注释再编译时被忽略掉了如果没有 文档/**...*/ 注释 使用javadoc 生成的当然是空的
javadoc: 错误 - 非法的软件包名称