Skip to content
Mike Zhou edited this page Jun 9, 2018 · 9 revisions

JAXB Compile

  • Generate Java Class from XML schema (XSD file)
  1. install "Dali Java Persistence Tools - JAXB Support".

search_jaxb

  1. Follow the procedure as shown in the following figure: right click the XSD file->Generate->JAXB classes generate_jaxb

NOTE: If you had the following error, you need to change your JRE to JDK version, instead of the JRE version. Or add JDK tools.jar to the project's Java Build Path.

Error: Could not find or load main class com.sun.tools.internal.xjc.XJCFacade

JSON Schema

  • Edit JSON doc

To edit json schema, installing Eclipse Web Developer Tools is recommended.

  • Compile JSON schema to Java

We can use JSONSchema2POJO to compile json schema to a set Java classes.

Clone this wiki locally