JavaDoc因"非法包名" -error而失败

时间:2014-07-20 07:40:09

标签: java javadoc

我使用eclipse并在我的java项目中有8个包。我尝试使用eclipse生成我的javadoc(Project-> Generate JavaDoc)..但是在我启动该过程后会出现以下错误:

  

javadoc:error - 非法包名:“sjavaeclipseeclipsepluginsorg.eclipse.core.databinding.property_1.4.200.v20130515-1857.jar; C:UsersPhilworkspaceBachelor_Thesislibjunit-4.10.jar; C:UsersPhilDesktopEclipse”   javadoc:错误 - 非法包名:“s \ javaeclipse \ eclipse \ plugins \ org.eclipse.text_3.5.300.v20130515-1451.jar; C:\ Users \ Phil \ Desktop \ Eclipse”   javadoc:错误 - 非法包名:“sjavaeclipseeclipsepluginsorg.eclipse.core.runtime_3.9.0.v20130326-1255.jar; C:UsersPhilworkspaceBachelor_Thesisliblog4j-1.2.17.jar; C:UsersPhilDesktopEclipse”   javadoc:错误 - 非法包名:“s \ javaeclipse \ eclipse \ plugins \ org.eclipse.jface_3.9.0.v20130521-1714.jar; C:\ Users \ Phil \ Desktop \ Eclipse”   javadoc:错误 - 非法包名:“sjavaeclipseeclipsepluginsorg.eclipse.ui.workbench_3.105.0.v20130529-1406.jar; C:UsersPhilDesktopEclipse”   javadoc:错误 - 非法包名:“s \ javaeclipse \ eclipse \ plugins \ com.ibm.icu_50.1.1.v201304230130.jar; C:\ Users \ Phil \ Desktop \ Eclipse”   javadoc:错误 - 非法包名:“sjavaeclipseeclipsepluginsorg.eclipse.swt.win32.win32.x86_3.102.0.v20130605-1544.jar; C:UsersPhilDesktopEclipse”   javadoc:错误 - 非法包名:“s \ javaeclipse \ eclipse \ plugins \ org.eclipse.equinox.registry_3.5.300.v20130327-1442.jar; C:\ Users \ Phil \ Desktop \ Eclipse”   javadoc:错误 - 非法包名:“sjavaeclipseeclipsepluginsorg.eclipse.ui.forms_3.6.0.v20130517-0139.jar; C:UsersPhilDesktopEclipse”   javadoc:错误 - 非法包名:“s \ javaeclipse \ eclipse \ plugins \ org.eclipse.osgi_3.9.0.v20130529-1710.jar; C:\ Users \ Phil \ Desktop \ BALokal \ ZipsUndJars \ antlr-4.2.2- complete.jar; C:\用户\菲尔\桌面\月食”   javadoc:错误 - 非法包名:“sjavaeclipseeclipsepluginsorg.eclipse.core.databinding.beans_1.2.200.v20130515-1857.jar; C:UsersPhilDesktopEclipse”   javadoc:错误 - 非法包名:“s \ javaeclipse \ eclipse \ plugins \ org.eclipse.core.commands_3.6.100.v20130515-1857.jar; C:\ Users \ Phil \ Desktop \ Eclipse”   javadoc:错误 - 非法包名:“sjavaeclipseeclipsepluginsorg.eclipse.equinox.common_3.6.200.v20130402-1505.jar; C:UsersPhilDesktopBALokalZipsUndJarseaapi.jar; C:UsersPhilDesktopEclipse”   javadoc:错误 - 非法包名:“s \ javaeclipse \ eclipse \ plugins \ org.eclipse.jface.text_3.8.100.v20130515-1957.jar; C:\ Users \ Phil \ Desktop \ Eclipse”   javadoc:错误 - 非法包名:“sjavaeclipseeclipsepluginsorg.eclipse.jface.databinding_1.6.200.v20130515-1857.jar; C:UsersPhilDesktopEclipse”   javadoc:错误 - 非法包名:“s \ javaeclipse \ eclipse \ plugins \ org.eclipse.core.databinding_1.4.1.v20130515-1857.jar; C:\ Users \ Phil \ Desktop \ Eclipse”   javadoc:错误 - 非法包名:“sjavaeclipseeclipsepluginsorg.eclipse.core.databinding.observable_1.4.1.v20130515-1857.jar -private -source 1.7 -use -version -author -splitindex controller”

任何人都有解决这个问题的方法吗?我在Eclipse中使用WindowBuilder来创建我的GUI。似乎错误中所有命名的jar都是windowbuilder jar。

这是我的蚂蚁文件:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="javadoc">
    <target name="javadoc">
        <javadoc access="private" author="true" classpath="C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.core.databinding.property_1.4.200.v20130515-1857.jar;lib/junit-4.10.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.text_3.5.300.v20130515-1451.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.core.runtime_3.9.0.v20130326-1255.jar;lib/log4j-1.2.17.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.jface_3.9.0.v20130521-1714.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.ui.workbench_3.105.0.v20130529-1406.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\com.ibm.icu_50.1.1.v201304230130.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.swt.win32.win32.x86_3.102.0.v20130605-1544.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.equinox.registry_3.5.300.v20130327-1442.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.ui.forms_3.6.0.v20130517-0139.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.osgi_3.9.0.v20130529-1710.jar;C:\Users\Phil\Desktop\BALokal\ZipsUndJars\antlr-4.2.2-complete.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.core.databinding.beans_1.2.200.v20130515-1857.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.core.commands_3.6.100.v20130515-1857.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.equinox.common_3.6.200.v20130402-1505.jar;C:\Users\Phil\Desktop\BALokal\ZipsUndJars\eaapi.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.jface.text_3.8.100.v20130515-1957.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.jface.databinding_1.6.200.v20130515-1857.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.core.databinding_1.4.1.v20130515-1857.jar;C:\Users\Phil\Desktop\Eclipse's\javaeclipse\eclipse\plugins\org.eclipse.core.databinding.observable_1.4.1.v20130515-1857.jar" destdir="C:\Users\Phil\Desktop\BT_JavaDoc" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" packagenames="ea_xml_parser,gui,tsql_parser,controller,ea_activity_diagram,start_application,test" source="1.7" sourcepath="src" splitindex="true" use="true" version="true"/>
</target>

修改(溶液)

在我提问的评论的帮助下,我解决了这个问题。在我的第一个build_path条目的路径中,一个文件夹被命名为“Eclipse's”。没有撇号就可以了!: - )

1 个答案:

答案 0 :(得分:2)

感谢您在我的问题下面的评论中给出答案。在这些评论的帮助下,我解决了这个问题。

在我的第一个build_path条目的路径中,一个文件夹被命名为“Eclipse's”。没有撇号就可以了!: - )