package client; import net.mccarroll.WordCount; import com.google.gwt.core.client.EntryPoint; class WordCountEntryPoint implements EntryPoint { private static int count(String args[]) { return WordCount.count(args); } native void registerWrapper() /*-{ wordcount = @client.WordCountEntryPoint::count([Ljava/lang/String;); }-*/; public void onModuleLoad() { registerWrapper(); } }