GWT - did you forget to inherit a required module?

后端 未结 2 1635
北荒
北荒 2020-12-18 18:34

In my GWT application, on the client side Java file, I have written a line to print the Locale:

System.out.println(Locale.getDefault());
         


        
2条回答
  •  Happy的楠姐
    2020-12-18 19:23

    The client-side of GWT does not have access to the whole Java API. Java.util.Locale is one of them. You can't use or even import it on the client-side. But you can definitely use it on the server-side of GWT. You can find the list of classes that can be used at client-side here.

提交回复
热议问题