java - Cannot use class in client package with GWT -
I try to use myType class declared in com.mycompany.myproject in a class which resides in com.mycompany I am doing . Myproject.client but I am getting the following errors while compiling:
[error] line [X]: Import Com. Mycompany.myproject.myType can not be resolved
If I try to run a hosted browser I get:
[ ERROR] line [X]: Any source code is not available for com.mycompany.myproject.myType type; Have you forgotten to inherit an essential module?
Any ideas? This error means that GWT compiler can not find your class.
The GWT compiler can only find classes referred to by the .gwt.xml file for your project.
All this is explained here:
Comments
Post a Comment