我想将存储类与GWT一起使用。我在projectname.gwt.xml文件中有这个:
<module rename-to='projectname'>
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.google.gwt.storage.client.Storage' />
...
但是以dev模式启动项目会抛出:
Loading modules
com.me.myproject
Loading inherited module 'com.google.gwt.storage.client.Storage'
[ERROR] Unable to find 'com/google/gwt/storage/client/Storage.gwt.xml'
on your classpath; could be a typo, or maybe you forgot to include a
classpath entry for source?
[ERROR] Line 5: Unexpected exception while processing element 'inherits'
还有一个额外的罐子或我们需要包含的内容才能让它起作用吗?
由于
答案 0 :(得分:1)
用于存储的gwt xml文件位于:
<inherits name='com.google.gwt.storage.Storage' />
从您的导入中删除客户端,您应该没问题