Saturday, March 17, 2012

The import com.google.gwt.user cannot be resolved

I am going through the GWT Tutorials, specifically the "Making Remote
Procedure Calls" tutorial, and I have created an interface with the
following provided code:

package com.google.gwt.sample.stockwatcher.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("stockPrices")
public interface StockPriceService extends RemoteService {

StockPrice[] getPrices(String[] symbols);
}

I am getting the following errors:
The import com.google.gwt.user cannot be resolved
RemoteServiceRelativePath cannot be resolved to a type
RemoteService cannot be resolved to a type

I am using GWT 2.4.0, which I understand does not align with the
tutorial, but unfortunately I cannot think of how I should update the
provided code in the tutorial to 2.4. How can I fix the above code to
eliminate these errors? Thanks in advance for any help.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate