Java – GWT, how eclipse plug-ins integrate projects with gwt. Rename with XML file? An error occurs when trying to do this
I spent some time searching on it, and everything I found seems to have nothing to do with my problem I'm making an RPC call, so I want to change the path of one of my web services
It's like mytestproject, and you want to change it to finalprojectname
I went to mytestproject gwt. XML file and changed < module rename to = 'mytestproject' > to < module rename to = 'finalprojectname' >
Then I run it and get an error, [error] can't find 'org / eDiscovery / GWT / mytestproject. In the classpath gwt. xml’; Maybe it's a typo, or you forgot to include a classpath entry for the source?
Then I will mytestproject gwt. Change the XML to finalprojectname. XML gwt. XML, but still get the same result
I looked at every possible file, but couldn't find out why it thought the project was still named mytestproject I've cleaned up and rebuilt the project, but it's still the same I'm still new to Java, so maybe I missed something obvious I would appreciate any advice thank you
Solution
To rename the project from "mytestproject" to "finalprojectname":
>Yes gwt. XML file, rename to = "mytestproject" to = "finalprojectname" > Yes In the HTML file, change SRC = "mytestproject / mytestproject. Nocache. JS" to SRC = "finalprojectname / finalprojectname. Nocache. JS" (note double substitution!) > On your web In the XML file, adjust the path, such as < URL mode > / MyTestProject / meet < / url-pattern > > < URL mode > / finalprojectname / meet < / url-pattern > >
Anything else, such as renaming the package or renaming the. GWT. XML file, is optional
If you choose to rename later gwt. XML file, the output folder (War / finalprojectname) must be deleted In eclipse, you also delete the old run configuration, and then create a new run configuration using run as > Web application