首页 > 技术文章 > Eclipse导入工程后,XDoclet错误:Missing library: xdoclet-1.2.1.jar. Select the home directory for XDoclet

pureEve 2017-03-16 14:41 原文

这几天在使用Open Health Tools的OpenXDS工程,在导入Eclipse后,出现下面的错误:

遂google之,在网上找到了答案。答案网址为http://blog.v-s-f.co.uk/2011/04/eclipse-–-missing-library-xdoclet-1-2-1-jar/

Go to http://sourceforge.NET/projects/xdoclet/files/xdoclet/1.2.1/  and download the zip xdoclet-src-1.2.1.zip. Unzip it somewhere on your pc and in eclipse point the XDoclet Home to the extracted directory which contains all the jar files. Click apply to save the change.

但是!自己操作一遍之后发现不对!

因为作者说下载的这个文件并不是编译过的文件,lib里面没有xdoclet-1.2.1.jar这个包。所以在下载的时候,应该下载xdoclet-bin-1.2.1.zip,而不是xdoclet-src-1.2.1.zip。

xdoclet-bin-1.2.1.zip解压之后有如下几个文件夹

此时,把XDoclet Home设置为C:\openxds\xdoclet-1.2.1\lib,就成功啦!

推荐阅读