如何修复 [ERROR] 提示:检查您的模块是否继承了“com.google.gwt.core.Core" [英] How to fix [ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core'

查看:17
本文介绍了如何修复 [ERROR] 提示:检查您的模块是否继承了“com.google.gwt.core.Core"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Eclipse 中使用 GWT 启动一个 Web 开发项目.为此,我正在关注 http://www.gwtproject.org/doc 上的教程/latest/tutorial/create.html

I want to start a Web Development project with GWT in Eclipse. For that I am following the tutorial on http://www.gwtproject.org/doc/latest/tutorial/create.html

创建项目的表格与他们解释的并不完全一样.例如,我无法勾选使用 Google App Engine",因为它不存在.为了获取 build.xml,我勾选了生成 Ant 项目"字段.

The form to create the Project does not exactly look like they explain. For example I cannot make a checkmark at "Use Google App Engine" since it does not exist. To get the build.xml I checkmarked the "Generate an Ant Project" field.

当我尝试运行生成的代码时,出现以下错误:

When I try to run the generated code, the following error occurs:

Turning off precompile in incremental mode.
Super Dev Mode starting up
workDir: /tmp/gwt-codeserver-9585554490549923267.tmp
2019-02-03 18:36:10.619:INFO::main: Logging initialized @879ms
Loading Java files in com.google.gwt.sample.stockwatcher.StockWatcher.
[ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core'      either directly or indirectly (most often by inheriting module 'com.google.gwt.user.User')

当我尝试使用他们教程的命令行版本时,出现 503 错误:

When I try to use the command line version of their tutorial, I get an 503 Error:

HTTP ERROR: 503

Problem accessing /StockWatcher.html. Reason:

    Service Unavailable

Powered by Jetty://

我使用 GWT SDK 2.8.1 和 Java 10

I use GWT SDK 2.8.1 and Java 10

我已经为 Eclipse 安装了很多插件,所以我很确定拥有我需要的所有插件.也许这可能与 Java 版本有关?有人有想法吗?

I installed already lots of plugins for Eclipse, so that I am quite sure to have all plugins I need. Maybe this could be something with the Java version? Does anyone has an idea?

推荐答案

  1. 检查您的 gwt.xml 是否真的继承了com.google.gwt.user.User"
  2. 检查java sdk.某些 gwt 版本仅适用于 java 1.8
  3. 如果您使用 Idea,则存在一个错误,也会导致此错误:https://youtrack.jetbrains.com/issue/IDEA-218731?_ga=2.120118728.1133270638.1599566675-1712334692.1566210515

这篇关于如何修复 [ERROR] 提示:检查您的模块是否继承了“com.google.gwt.core.Core"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆