GWT:使用外部 Jar [英] GWT: Using External Jar

查看:25
本文介绍了GWT:使用外部 Jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想弄清楚如何在 GWT 项目中使用外部 jar.
我提到了 http://www.vogella.com/articles/GWTModules/article.html 并且效果很好.
但该示例使用 GWT 项目的构建路径中包含的另一个项目进行了解释,而不是包含该项目的 jar.

I am trying to figure out how to use external jar in GWT project.
I referred http://www.vogella.com/articles/GWTModules/article.html and it worked perfectly.
But the example explained using another project being included in the GWT project's build path instead of including the jar of that project.

我知道这应该没什么区别,但是当我创建外部项目的 jar(包括源代码)并在客户端 GWT 中使用它时,出现以下错误:

I know this should not make a difference but when I created the jar of the external project (including sources) and used it in the client GWT gave me following error:

The import com.person cannot be resolved

会有什么问题?

推荐答案

要在您的 gwt eclipse 项目中使用外部 gwt 库 jar 文件,您必须在 java 构建路径的库选项卡中添加该 jar 文件:

For using external gwt library jar file in your gwt eclipse project you have to add that jar file in library tab from java build path:

这篇关于GWT:使用外部 Jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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