Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
即使在官方教程中也出现GWT错误:请检查您的模块是否继承了';com.google.gwt.core.core';直接或间接地_Gwt - Fatal编程技术网

即使在官方教程中也出现GWT错误:请检查您的模块是否继承了';com.google.gwt.core.core';直接或间接地

即使在官方教程中也出现GWT错误:请检查您的模块是否继承了';com.google.gwt.core.core';直接或间接地,gwt,Gwt,我正在学习GWT,并试图由Vogella和 在Windows10和JDK11上使用EclipseGWT插件3.0 我标记了Maven项目复选框 当我右键单击并以 Turning off precompile in incremental mode. Super Dev Mode starting up workDir: C:\Users\My\AppData\Local\Temp\gwt-codeserver-8137229043727681777.tmp 2021-04-29 12:03

我正在学习GWT,并试图由Vogella和

在Windows10和JDK11上使用EclipseGWT插件3.0

我标记了
Maven项目
复选框

当我右键单击并以

Turning off precompile in incremental mode.
Super Dev Mode starting up
   workDir: C:\Users\My\AppData\Local\Temp\gwt-codeserver-8137229043727681777.tmp
2021-04-29 12:03:13.494:INFO::main: Logging initialized @718ms
   Loading Java files in de.vogella.gwt.helloworld.De_vogella_gwt_helloworld.
   [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')
我看到它正在继承用户

<?xml version="1.0" encoding="UTF-8"?>
<!--
  When updating your version of GWT, you should also update this DTD reference,
  so that your app can take advantage of the latest GWT module capabilities.
-->
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.1//EN"
  "http://www.gwtproject.org/doctype/2.8.1/gwt-module.dtd">
<module rename-to='de_vogella_gwt_helloworld'>
  <!-- Inherit the core Web Toolkit stuff.                        -->
  <inherits name='com.google.gwt.user.User'/>

  <!-- Inherit the default GWT style sheet.  You can change       -->
  <!-- the theme of your GWT application by uncommenting          -->
  <!-- any one of the following lines.                            -->
  <inherits name='com.google.gwt.user.theme.clean.Clean'/>
  <!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
  <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
  <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->

  <!-- Other module inherits                                      -->

  <!-- Specify the app entry point class.                         -->
  <entry-point class='de.vogella.gwt.helloworld.client.De_vogella_gwt_helloworld'/>

  <!-- Specify the paths for translatable code                    -->
  <source path='client'/>
  <source path='shared'/>

  <!-- allow Super Dev Mode -->
  <add-linker name="xsiframe"/>
</module>


与我的问题无关。

几乎可以肯定,您的类路径中缺少gwt-user.jar,或者gwt-user.jar版本与gwt-dev.jar不匹配,这将导致问题。每个模块都会自动继承com.google.gwt.core.core(尽管有错误消息),正如您的.gwt.xml所示,您已经添加了用户

--


此外,在您的链接SO帖子中,一定要检查注释-列出了一些更好、更现代的教程。

几乎可以肯定,您的类路径中缺少gwt-user.jar,或者gwt-user.jar版本与gwt-dev.jar不匹配,这将导致问题。每个模块都会自动继承com.google.gwt.core.core(尽管有错误消息),正如您的.gwt.xml所示,您已经添加了用户

--


此外,在您的链接SO帖子中,一定要查看评论-这里列出了一些更好、更现代的教程。

您没有指向您提到的教程的链接。这里有一些很好的工具可以开始:,例如。另一个获取信息的好地方是:你没有一个指向你提到的教程的链接。这里有一些很棒的工具可以开始:,例如。获取信息的另一个好地方是:在java构建路径中,我看到了带有这两个JAR的GWTSDK。类路径上的jar会不同吗?我还试图学习Kyle Wintner的2017年LinkedIn学习教程。同样的错误。在java构建路径中,我看到了带有这两个JAR的GWT SDK。类路径上的jar会不同吗?我还试图学习Kyle Wintner的2017年LinkedIn学习教程。同样的错误。