1

GWTでStorageクラスを使用したいのですが。私のprojectname.gwt.xmlファイルにこれがあります:

<module rename-to='projectname'>
    <inherits name='com.google.gwt.user.User'/>
    <inherits name='com.google.gwt.storage.client.Storage' />

    ...

ただし、プロジェクトを開発モードで開始すると、次のようになります。

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'

追加のjarファイルまたはそれを機能させるために含める必要のあるものはありますか?

ありがとう

4

1 に答える 1

1

ストレージ用のgwtxmlファイルは次の場所にあります。

<inherits name='com.google.gwt.storage.Storage' />

インポートからクライアントを削除すると、問題がないはずです

于 2012-08-23T20:15:00.820 に答える