eclipse GWT 中的“无法在您的类路径上找到 XXX.gwt.xml”错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10746947/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
"Unable to find XXX.gwt.xml on your classpath" error in GWT
提问by Phyxx
After importing a Maven GWT project into Eclipse the debugger doesn't work, complaining that it's
将 Maven GWT 项目导入 Eclipse 后,调试器不工作,抱怨它是
Unable to find ProjectName.gwt.xml on your classpath
Unable to find ProjectName.gwt.xml on your classpath
How do you fix this error?
你如何解决这个错误?
采纳答案by Phyxx
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.
事实证明,当您将某个 GWT 项目作为 Web 应用程序调试时,Eclipse 不会将模块名称(即 gwt.xml 文件)附加到参数列表中。我尝试手动添加它,但忘记添加包含 gwt.xml 文件的完整包名称。该模块应该被称为 com.company.project.Project.gwt.xml,而不仅仅是 Project.gwt.xml。
回答by Sachin Chaudhari
I found that Davek804's comment helped me: I simply deleted the debug configuration (Run=>Debug Configuration=>right click and deleted project will run
我发现Davek804的评论对我有帮助:我只是删除了调试配置(运行=>调试配置=>右键单击删除的项目将运行
回答by liftarn
Try going to Run -> Run Configurationsin the menu and then select the Classpathtab and add the missing project.
尝试转到菜单中的Run -> Run Configurations,然后选择Classpath选项卡并添加缺少的项目。