1
我有一個外部的JAR signpost-core-1.2.1.1.jar(從http://code.google.com/p/oauth-signpost/),我想將其包含到我的Java GWT項目中。如何爲外部jar創建gwt.xml文件?
所以我這個外部JAR文件添加到Eclipse中我的構建路徑,並把theese進口到我的類別:
import oauth.signpost.basic.DefaultOAuthConsumer;
import oauth.signpost.exception.OAuthCommunicationException;
import oauth.signpost.exception.OAuthExpectationFailedException;
import oauth.signpost.exception.OAuthMessageSignerException;
在編譯時我theese錯誤信息:
[ERROR] Line 130: No source code is available for type oauth.signpost.basic.DefaultOAuthConsumer; did you forget to inherit a required module?
[ERROR] Line 133: No source code is available for type oauth.signpost.exception.OAuthMessageSignerException; did you forget to inherit a required module?
[ERROR] Line 135: No source code is available for type oauth.signpost.exception.OAuthExpectationFailedException; did you forget to inherit a required module?
[ERROR] Line 137: No source code is available for type oauth.signpost.exception.OAuthCommunicationException; did you forget to inherit a required module?
所以我把在我的Admin.gwt.xml文件中的以下行:
<inherits name='oauth.signpost.Signpost' />
現在我收到此消息:
Loading inherited module 'oauth.signpost.Signpost'
[ERROR] Unable to find 'oauth/signpost/Signpost.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
不幸的是,Signpost沒有縫提供gwt.xml文件,因爲它只包含一個jar文件。
那麼我該怎麼寫呢?
我要把它放在哪裏?
或者我只需要設置一些額外的路徑?
謝謝。不知道,但這聽起來合乎邏輯。要嘗試在服務器端。 – JochenJung 2010-10-19 14:02:22