Java 使用GWT编译项目时出错
我刚刚用SVN签出了一个项目,并显示了以下错误。 我对使用gwt非常陌生,如果您能帮助我,我将非常感激 这就是错误:Java 使用GWT编译项目时出错,java,eclipse,gwt,Java,Eclipse,Gwt,我刚刚用SVN签出了一个项目,并显示了以下错误。 我对使用gwt非常陌生,如果您能帮助我,我将非常感激 这就是错误: Loading inherited module 'com.google.web.bindery.event.Event' [ERROR] Unable to find 'com/google/web/bindery/event/Event.gwt.xml' on your classpath; could be a a typo, or maybe you forgot to
Loading inherited module 'com.google.web.bindery.event.Event'
[ERROR] Unable to find 'com/google/web/bindery/event/Event.gwt.xml' on your classpath; could be a
a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] Line 22: Unexpected exception while processing element 'inherits'
这是我的xml文件
<?xml version="1.0" encoding="UTF-8"?>
<module>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name="com.smartgwt.SmartGwt" />
<inherits name="com.smartgwt.tools.SmartGwtTools" />
<inherits name="com.google.gwt.activity.Activity" />
<inherits name="com.google.gwt.place.Place" />
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.google.web.bindery.event.Event" />
<inherits name="com.google.gwt.core.Core" />
<entry-point class='ch.datalynx.clessidra.client.Clessidra' />
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
<replace-with
class="ch.datalynx.clessidra.client.mvp.clientfactories.ClientFactoryImpl">
<when-type-is
class="ch.datalynx.clessidra.client.mvp.clientfactories.ClientFactory" />
</replace-with>
<source path='client' />
<source path='shared' />
</module>
确保
gwt user.jar
文件位于构建路径中。它是GWT SDK的一部分
它找不到
gwt user.jar/com/google/web/bindery/event/event.gwt.xml
可能是gwt SDK
未在类路径中配置属性。您使用的是哪个版本的gwt?您好!感谢您回答“是”,它位于生成路径中,也许您知道导致该错误发生的其他原因。@user3430664检查Eclipse的“问题”视图,看看它是否说明了与您的生成路径有关的内容。你已经安装了GWT插件和SDK,对吗?