Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EclipseLink/Examples/MOXy/JAXB/Compiler"

< EclipseLink‎ | Examples‎ | MOXy‎ | JAXB
(New page: ==Running the JAXB Compiler== The JAXB compiler can be run to generate JAXB-annotated Java classes from an XML Schema: <source lang="text"> <ECLIPSELINK_HOME>/eclipselink/bin/jaxb-compil...)
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
==Running the JAXB Compiler==
+
== Overview ==
 +
{{EclipseLink_DocWiki
 +
|link=EclipseLink/UserGuide/MOXy/Generating_Java_Classes_from_an_XML_Schema}}
 +
The JAXB Compiler can be used to generate Java classes from an XML schema.  The resulting classes contain JAXB annotations that represent the XML binding metadata.
 +
 
 +
== Running the JAXB Compiler ==
  
 
The JAXB compiler can be run to generate JAXB-annotated Java classes from an XML Schema:
 
The JAXB compiler can be run to generate JAXB-annotated Java classes from an XML Schema:

Latest revision as of 14:37, 27 December 2010

Overview

The JAXB Compiler can be used to generate Java classes from an XML schema. The resulting classes contain JAXB annotations that represent the XML binding metadata.

Running the JAXB Compiler

The JAXB compiler can be run to generate JAXB-annotated Java classes from an XML Schema:

<ECLIPSELINK_HOME>/eclipselink/bin/jaxb-compiler.sh <source-file.xsd> [-options]
<ECLIPSELINK_HOME>\eclipselink\bin\jaxb-compiler.cmd <source-file.xsd> [-options]
 
Options include:
   -d <dir>                     Specifies the output directory for generated files
   -p <pkg>                     Specifies the target package
   -classpath <arg>             Specifies where to find user class files
   -verbose                     Enable verbose output
   -quiet                       Suppress compiler output
   -version                     Display version information
 
For a complete list of compiler options:
   jaxb-compiler.sh -help
 
Example:
   jaxb-compiler.sh -d jaxb-compiler-output config/Customer.xsd

Back to the top