我正在尝试生成我的项目文档,并在java.lang
上出错Loading source files for package com.swimtechtest.swimmer...
Loading source files for package com.swimtechtest.swimmer.math...
Loading source files for package com.swimtechtest.swimmer.database...
Loading source files for package com.swimtechtest.swimmer.helpers...
Constructing Javadoc information...
com.sun.tools.javac.util.FatalError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:123)
at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:509)
at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446)
at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:819)
at com.sun.tools.javac.code.Symbol.complete(Symbol.java:384)
at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:766)
at com.sun.tools.javac.comp.Enter.complete(Enter.java:464)
at com.sun.tools.javac.comp.Enter.main(Enter.java:442)
at com.sun.tools.javadoc.JavadocEnter.main(JavadocEnter.java:53)
at com.sun.tools.javadoc.JavadocTool.getRootDocImpl(JavadocTool.java:152)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:330)
at com.sun.tools.javadoc.Start.begin(Start.java:128)
at com.sun.tools.javadoc.Main.execute(Main.java:41)
at com.sun.tools.javadoc.Main.main(Main.java:31)
javadoc: error - fatal error
1 error
答案 0 :(得分:0)
这对我有用:
1)从android.jar的路径中删除空格(我试图让它与空格一起工作的所有修复程序都不适用于我)
2)选择Project / Generate Javadoc ...
3)输入javadoc可执行文件的正确路径,在我的例子中如下所示:
4)单击“下一步”并输入文档标题
5)单击“下一步”,将bootclasspath添加到VM选项。我在我的Mac上搜索了android.jar。确保使用正确的位置和版本。我看起来像这样:
6)点击完成,它应该有效。
希望有所帮助: - )