gwt编译错误 [英] gwt compiling error

查看:103
本文介绍了gwt编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 编译模块com.sem.Sem10 
查找入口点类
[错误]无法找到类型'com.sem.client.Sem10'
[错误]提示:以前的编译器错误可能导致此类型不可用
[错误]提示:检查模块的继承链;它可能不是继承所需的模块或模块可能没有正确添加其源路径条目

我的包结构是


  • com.sem

  • com.sem.client

  • com.sem.schema

  • com.sem.server

    继承name ='com。 google.gwt.user.User'

    inherits name ='com.google.gwt.user.theme.standard.Standard'


    inherits name ='com.google.gwt。 maps.GoogleMaps'
    script src =http://maps.google.com/maps?gwt = 1& file = api& amp .... amp $

    entry-point class =' com.sem.client.Sem10'

    source path ='com.sem.schema'




<我已经搜索了这个东西很长一段时间,并找不到解决方案...?任何帮助表示赞赏

解决方案

它看起来你的源代码路径是不正确的。



如果你将它设置为com.sem.schema,那么com.sem.client将不在源代码中路径,因此你的入口点com.sem.client.Sem10也不会。



尝试移除源路径定义,使用默认值(这是客户端子模块存储在模块XML文件的存储位置 - 所以com.sem.client)。



请参阅这里了解更多信息: http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules


Compiling module com.sem.Sem10
   Finding entry point classes
      [ERROR] Unable to find type 'com.sem.client.Sem10'
         [ERROR] Hint: Previous compiler errors may have made this type unavailable
         [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly

My package structure is

  • com.sem
  • com.sem.client
  • com.sem.schema
  • com.sem.server

    inherits name='com.google.gwt.user.User'
    inherits name='com.google.gwt.user.theme.standard.Standard'
    inherits name='com.google.gwt.maps.GoogleMaps' script src="http://maps.google.com/maps?gwt=1&file=api&amp....
    entry-point class='com.sem.client.Sem10'
    source path='com.sem.schema'

I have googled this thing for quite a while and could not find a solution...? any help appreciated

解决方案

It looks like your source path is incorrect.

If you set it to com.sem.schema then the com.sem.client won't be on the source path, and therefore your entry point com.sem.client.Sem10 won't be either.

Try removing your source path definition, use the default (which is the client subpackage underneath where the Module XML File is stored - so com.sem.client).

See here for more information: http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules

这篇关于gwt编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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