What you need to prepare is
- Download Collada 1.5.0 Schema (if the extension is "txt", the change it to "xsd")
- Download latest JAXB (currently 2.1.9 is the latest)
- Open and place them as you need. (also set a path for Java and others)
First, I tried the command "xjc collada_schema_1_5.xsd" and got the following errors.
This problem is occurred by name collision it seemed and I found a solution here
[ERROR] Property "Source" is already defined. Use <jaxb:property> to resolve this conflict. line 8785 of file:/Users/shiva/TMP/collada/collada_schema_1_5.xsd ... |
This problem is occurred by name collision it seemed and I found a solution here
"simpleMode.xml" helped to avoid the first problem. (and it worked well for collada 1.4 schema)
The Command was
"xjc collada_schema_1_5.xsd -extension simpleMode.xml"
(make sure the path to "simpleMode.xml")
When I tried it, "xjc" died of OutOfMemory error however I could not find a way to enlarge memory space for "xjc" command.
So that I needed to call "xjc" from "java" command as follows.
"java -Xmx1024m -jar jaxb-xjc.jar collada_schema_1_5.xsd -extension simpleMode.xsd"
This worked enough and I could get java classes for the schema.
0 件のコメント:
コメントを投稿