Skip to main content
Jump to: navigation, search


The JAXB compiler can be run to generate JAXB annotated Java classes from an XML Schema. The following are examples of the most common usage:

<ECLIPSELINK_HOME>/eclipselink/bin/ example.xsd -d targetDirectory
<ECLIPSELINK_HOME>\eclipselink\bin\jaxb-compiler.cmd example.xsd -d targetDirectory

For more detailed compiler options:

<ECLIPSELINK_HOME>/eclipselink/bin/ -help
<ECLIPSELINK_HOME>\eclipselink\bin\jaxb-compiler.cmd -help

See Developing JAXB Applications Using EclipseLink MOXy for more information.

Back to the top