您好我刚开始使用JIBX和我有困难抓绑定的概念。 我从我使用Windows XSD文件生成的Java类,这里是我的文件夹是如何结构
d:\库\这个文件夹包含下载等等之类的JiBX-tools.jar中的RAR库在d的JiBX的文件夹:\图书馆\的JiBX \ lib中.....
现在库文件夹中还含有一种叫dwcode2我叫starter.xsd在d XSD文件夹:\图书馆\的JiBX \ dwcode2 \
我生成使用在DOS d命令Java文件:\库\的JiBX \ dwcode2>的java -cp .. \ lib中\的JiBX-tools.jar中org.jibx.schema.codegen.CodeGen -t根\ SRC -w起动机。 XSD
结果JAVA文件是在d产生:\图书馆\的JiBX \ dwcode2 \根的\ src \组织\ JiBX的\
和d被生成的binding.xml:\库\的JiBX \ dwcode2 \根\ SRC
现在我想编译和文件绑定(可能有人还告诉我,为什么我们需要编译并绑定XML),所以我做了以下d:\图书馆\的JiBX \ dwcode2 \根\ SRC> Java的罐子“d: \ Java库“\ JiBX的\ LIB \ JiBX的,bind.jar binding.xml
Error: Unable to find type org.jibx.starter.Shipping; on format element at (line 3, col 66, in binding.xml)Error: Cannot find information for class org.jibx.starter.Item; on mapping element at (line 4, col 79, in binding.xml)Error: Cannot find information for class org.jibx.starter.Address; on mapping element at (line 9, col 85, in binding.xml) Error: Cannot find information for class org.jibx.starter.Customer; on mapping element at (line 17, col 87, in binding.xml)Error: Cannot find information for class org.jibx.starter.Order; on mapping element at (line 22, col 81, in binding.xml) Error: Cannot find information for class org.jibx.starter.Order; on mapping element at (line 35, col 56, in binding.xml) Error running binding compiler org.jibx.runtime.JiBXException: Binding binding.xml is unusable because of validation errors at org.jibx.binding.Utility.loadBinding(Utility.java:358) at org.jibx.binding.Utility.loadFileBinding(Utility.java:420)
at org.jibx.binding.Compile.compile(Compile.java:217)
at org.jibx.binding.Compile.main(Compile.java:384)
谁能告诉我什么,我做错了什么? 我怎样才能解决这个问题? 为什么我们必须绑定?