gwt - 如何解决,Gwt编译错误: refers to missing type “classname” in my playN project?

标签 gwt maven compiler-errors playn

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

相关文章:

Android 应用程序对 android 库项目的引用在 Maven-> 更新项目后中断

compiler-errors - Ionic2/Angular2 语法错误

c# - WPF编译错误

c - GTK+ 海湾合作委员会 : undefined reference to all gtk functions when linking

java - GWT ValueProxy 和 RequestFactory 域类型错误

gwt - Google Apps 脚本 - 在仅以 View 形式共享电子表格时发出运行脚本问题

maven - 如何使用 Maven 通过模块并行运行单元测试?

java - 在 Maven 中替换文件的正确方法是什么?

gwt - GWTP 中的服务器端 session 管理

java - 开始 GWT 和 Java - 从 LAMP 背景出发时,哪条路最好?