我有一個打包源代碼的jar文件。在GWT中添加外部jar
我插在戰爭/ WEB-INF/lib下的jar/xxx.jar添加到構建路徑
但是當我運行該項目,我得到一個錯誤
編輯新增gwt.xml
<module rename-to='bookmanagementsystem'>
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<inherits name='com.example.Book'></inherits>
<entry-point class='com.example.Book.client.Index'/>
</module>
編輯
我解決 插件未能在127.0.0.1:9997
連接到開發模式服務器現在,我有一個問題
Loading inherited module 'com.example.book'
[ERROR] Unable to find 'com/example/book.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] Line 6: Unexpected exception while processing element 'inherits'
可以請您發佈.gwt.xml文件代碼嗎? – Parvathy
@Parvathy已添加gwt.xml – Bucks
是否確定在com.example中有Book.gwt.xml文件?請告訴jar文件的包。 – Parvathy