我想在 Eclipse 中使用 GWT 启动一个 Web 开发项目。为此,我正在关注 http://www.gwtproject.org/doc/latest/tutorial/create.html 上的教程
创建项目的表单与他们解释的并不完全一样。例如,我无法勾选“使用 Google App Engine”,因为它不存在。为了获取 build.xml,我勾选了“生成 Ant 项目”字段。
当我尝试运行生成的代码时,出现以下错误:
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 错误:
HTTP ERROR: 503
Problem accessing /StockWatcher.html. Reason:
Service Unavailable
Powered by Jetty://
我使用 GWT SDK 2.8.1 和 Java 10
我已经为 Eclipse 安装了很多插件,所以我很确定拥有我需要的所有插件。也许这可能与 Java 版本有关?有没有人有想法?
最佳答案
关于java - 如何修复 [ERROR] 提示 : Check that your module inherits 'com.google.gwt.core.Core' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54505911/