Eclipse導入工程后,XDoclet錯誤:Missing library: xdoclet-1.2.1.jar. Select the home directory for XDoclet. 1.
這幾天在使用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,就成功啦!