我想在 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')
Run Code Online (Sandbox Code Playgroud)
当我尝试使用他们的教程的命令行版本时,我收到 503 错误:
HTTP ERROR: 503
Problem accessing /StockWatcher.html. Reason:
Service Unavailable
Powered by Jetty://
Run Code Online (Sandbox Code Playgroud)
我使用 GWT SDK 2.8.1 和 Java 10 …