在playN项目中,我收到许多gwt编译错误,如下所示。有人可以给我提示吗?这些是行家项目。
[
'jar:file:/home/user/.m2/repository/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.jar!/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java'
Line 69: The method logRecordFromJson(String) from the type JsonLogRecordServerUtil refers to the missing type JSONException
Errors in 'jar:file:/home/user/.m2/repository/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.jar!/com/google/gwt/logging/server/StackTraceDeobfuscator.java'
Line 53: No source code is available for type java.util.regex.Pattern; did you forget to inherit a required module?
Line 60: No source code is available for type java.io.File; did you forget to inherit a required module?
Line 176: No source code is available for type java.io.InputStream; did you forget to inherit a required module?
Line 180: No source code is available for type java.io.FileInputStream; did you forget to inherit a required module?
Line 206: No source code is available for type java.io.BufferedReader; did you forget to inherit a required module?
Line 207: No source code is available for type java.io.InputStreamReader; did you forget to inherit a required module?
Line 239: No source code is available for type java.util.regex.Matcher; did you forget to inherit a required module?
Errors in 'jar:file:/home/user/.m2/repository/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.jar!/com/google/gwt/place/rebind/PlaceHistoryGeneratorContext.java'
Line 196: The method format(String, String, String) is undefined for the type String
Line 202: The method format(String, String, String, String) is undefined for the type String
Line 212: The method format(String, String, String, String) is undefined for the type String
Line 285: The method getCanonicalName() is undefined for the type Class<capture#2-of ? extends PlaceTokenizer<?>>
Line 289: The method getSimpleName() is undefined for the type Class<WithTokenizers>
Line 290: The method getCanonicalName() is undefined for the type Class<capture#4-of ? extends PlaceTokenizer<?>>
]
最佳答案
GWT并不支持所有软件包java.io。
有关详细信息,请参见JRE Emulation Reference。
在浏览器中模拟文件/流没有意义。
关于gwt - 如何解决,Gwt编译错误: refers to missing type “classname” in my playN project?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9837012/