Stats

56 Contributors: 2 Monday, June 19, 2017
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

XJC

Introduction

XJC is a Java SE tool that compiles an XML schema file into fully annotated Java classes.

It is distributed within the JDK package and is located at /bin/xjc path.

Syntax

  • xjc [ options ] schema file/URL/dir/jar ... [-b bindinfo ] ...

Parameters

ParameterDetails
schema fileThe xsd schema file to convert to java

Remarks

The XJC tool is available as part of the JDK. It allows creating java code annotated with JAXB annotations suitable for (un)marshalling.

Related Examples