只需要在服务器端将外部库添加到GWT项目中 [英] Need to add external libraries to GWT project on the server side only
问题描述
要包括在Eclipse的GWT项目外部罐子你必须执行2个步骤:
如果您将jar放在WEB-INF中,它的方法只从服务器端,你会没事的。
I am looking to integrate a bunch of external java libraries (jar files) into a GWT project. Note that I do not need them to compile into javascript because they are being called only on the server side. I've copied the files into web-inf/lib but eclipse does not seem to recognize them. I need to call functions in these jar files from the server side only.
To include external jars in an Eclipse's GWT project you must perform 2 steps:
- Put the files in the WEB-INF/lib directory as you already did
- Include the jars in your Java Build Path in Eclipse. You will find it in Project -> Properties -> Java Build Path
If you put the jars in the WEB-INF and you call its methods only from the server side, you'll be fine.
这篇关于只需要在服务器端将外部库添加到GWT项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!