“Unable to find XXX.gwt.xml on your classpath” error in GWT

こ雲淡風輕ζ 提交于 2019-12-20 12:22:04

问题


After importing a Maven GWT project into Eclipse the debugger doesn't work, complaining that it's

Unable to find ProjectName.gwt.xml on your classpath

How do you fix this error?


回答1:


It turns out that when you debug some GWT project as Web Applications, Eclipse does not append the module name (i.e. the gwt.xml file) to the list of arguments. I tried adding it manually, but forgot to add the complete package name that houses the gwt.xml file. The module should have been referred to as com.company.project.Project.gwt.xml, not just Project.gwt.xml.




回答2:


I found that Davek804's comment helped me: I simply deleted the debug configuration (Run=>Debug Configuration=>right click and deleted project will run




回答3:


Try going to Run -> Run Configurations in the menu and then select the Classpath tab and add the missing project.



来源:https://stackoverflow.com/questions/10746947/unable-to-find-xxx-gwt-xml-on-your-classpath-error-in-gwt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!