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

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

问题描述

我试图找出如何在GWT项目中使用外部jar。

我引用了 http://www.vogella.com/articles/GWTModules/article.html ,它的工作完美。

但是这个例子解释了使用另外一个项目包含在GWT项目的构建路径,而不是包含该项目的jar。



我知道这不应该有所作为,但是当我创建了外部项目(包括源代码)的jar并在客户机GWT中使用它给我以下错误: / p>

 导入com.person无法解析

这是什么问题?

解决方案

在您的gwt eclipse项目,您必须从Java构建路径的库选项卡中添加该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.

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

What would be the problem?

解决方案

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:使用外部罐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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