I am trying to use ClientBundle for my app but facing an error. As specified in documentations:
- inherited Resources in my gwt.xml.
- Extended ClientBundle
- Created style interface by extending CssResources, added accessor methods for all styles.
- Added member for the Style interface and specified its @Source css.
- Added member INSTANCE using GWT.create.
At this point, the moment I compile, I get ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor.
at com.google.gwt.core.shared.GWT.createImpl(GWT.java:77)
Did I miss any step?
Thanks,
Tushar