简体   繁体   中英

gwt mvp contacts example project gives error when importing it in eclipse

i downloaded the example GWT MVP Contacts project from

google gwt mvp tutorial

and imported it in eclipse juno. when eclipse loaded it, i get the following error:在此处输入图片说明

when i try to run this project the console gives me this error message:

Loading modules com.myproject.example.places.Contacts [ERROR] Unable to find 'com/myproject/example/places/Contacts.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] shell failed in doStartup method

before i downloaded this example project, i created my own project which i called "Contacts" too, but i deleted it from the workspace and after that i downloaded the gwt mvp Contacts example and imported it into eclipse.

What kind of error is this and how to remove it?

please help.

iam using eclipse juno and gwt 2.5 version

in your build file, under target "gwtc" you may see the following like

this should be changed to proper values. Go to your src folder, under that you may find xxxx.gwt.xml file enclosed in a package something like com.google.gwt.sample.logexample. say inside this package you find the file LogExample.gwt.xml

your correct arg value should be

hope this helps

If you are using eclipse or similar IDE right click on project => Properties => Java Build Path, under Order and Export ensure all the entries are checked the errors should disappear

please refer to the image below:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM