GWT:使用外部罐 [英] GWT: Using External 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屋!