gwt - 如何解决,Gwt编译错误: refers to missing type “classn

在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/

相关文章:

compilation - javassist编译错误没有这样的类

compiler-errors - 为自定义MATLAB工具箱执行编译器脚本时出错

c# - 编译器不一致的可访问性错误,将嵌套类作为函数参数传递

android - java.beans.VetoableChangeListener无法解析

makefile - 在 Fedora 17 中使用 'make' 命令编译时出错

c# - NHibernate错误:s

c# - 为什么这一行代码与上面两行不同?

xml - 使用Perl写入xml时遇到问题

opengl - glGetShaderiv()GL_COMPILE_STATUS返回GL_FALS

vb.net - 在VB.net故障中引发事件