schemagen.1 revision 0
4176N/A.'" t
0N/A." Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
0N/A." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A."
0N/A." This code is free software; you can redistribute it and/or modify it
0N/A." under the terms of the GNU General Public License version 2 only, as
0N/A." published by the Free Software Foundation.
0N/A."
0N/A." This code is distributed in the hope that it will be useful, but WITHOUT
0N/A." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A." version 2 for more details (a copy is included in the LICENSE file that
0N/A." accompanied this code).
0N/A."
0N/A." You should have received a copy of the GNU General Public License version
0N/A." 2 along with this work; if not, write to the Free Software Foundation,
0N/A." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2362N/A."
2362N/A." Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
2362N/A." CA 95054 USA or visit www.sun.com if you need additional information or
1178N/A." have any questions.
4176N/A." `
1178N/A.TH schemagen 1 "07 Aug 2006"
0N/A." Generated by html2man
1178N/A
0N/A.LP
0N/A.ad c
4176N/A.SH NAME
0N/Aschemagen \- Java(TM) Architecture for XML Binding Schema Generator \f3Specification Version:\fP 2.0
0N/A.br
1178N/A\f3Reference Implementation (RI) Version:\fP 2.0 ea3
0N/A.br
0N/A.ad l
0N/A
0N/A.LP
0N/A.SS
0N/ALaunching schemagen
0N/A.LP
0N/A.LP
0N/AThe schema generator can be launched using the appropriate \f2schemagen\fP shell script in the \f2bin\fP directory for your platform.
0N/A.LP
0N/A.LP
0N/AThe current schema generator can process either Java source files or class files.
0N/A.LP
0N/A.LP
0N/AWe also provide an Ant task to run the schema generator \- see the instructions for using schemagen with Ant.
1178N/A.LP
1178N/A.RS 3
0N/A
0N/A.LP
0N/A\f3For Solaris/Linux\fP
0N/A.LP
0N/A.nf
0N/A\f3
0N/A.fl
0N/A % path/to/jaxb/bin/schemagen.sh Foo.java Bar.java ...
0N/A.fl
1178N/A Note: Writing schema1.xsd
0N/A.fl
0N/A
0N/A.fl
0N/A\fP
0N/A.fi
1178N/A
0N/A.LP
0N/A\f3For WindowsNT/2000/XP\fP
0N/A.LP
0N/A.nf
0N/A\f3
0N/A.fl
0N/A > path\\to\\jaxb\\bin\\schemagen.bat Foo.java Bar.java ...
0N/A.fl
0N/A Note: Writing schema1.xsd
0N/A.fl
1178N/A
1178N/A.fl
0N/A\fP
0N/A.fi
0N/A.RE
0N/A
0N/A.LP
0N/A.LP
0N/AIf your java sources/classes reference other classes, they must be accessable on your system CLASSPATH environment variable, or they need to be given to the tool by using the \f2\-classpath\fP/\f2\-cp\fP options. Otherwise you will see errors when generating your schema.
1178N/A.LP
0N/A.RS 3
0N/A
0N/A.LP
0N/A\f3Command Line Options\fP
0N/A.LP
0N/A.RS 3
0N/A
0N/A.LP
0N/A.nf
0N/A\f3
0N/A.fl
0N/AUsage: schemagen [\-options ...] <java files>
0N/A.fl
0N/A
0N/A.fl
0N/AOptions:
4176N/A.fl
0N/A \-d <path> : Specify where to place processor and javac generated class files
0N/A.fl
0N/A \-cp <path> : Specify where to find user specified files
0N/A.fl
0N/A \-classpath <path> : Specify where to find user specified files
0N/A.fl
0N/A \-help : Display this usage message
0N/A.fl
0N/A
0N/A.fl
0N/A\fP
0N/A.fi
0N/A.RE
0N/A
0N/A.LP
0N/A.RE
0N/A.SS
0N/AGenerated Resource Files
0N/A.LP
0N/A.LP
0N/AThe current schema generator simply creates a schema file for each namespace referenced in your Java classes. There is no way to control the name of the generated schema files at this time. For that purpose, use the schema generator ant task.
0N/A.LP
0N/A.SH "See Also"
0N/A.LP
0N/A.RS 3
0N/A.TP 2
0N/Ao
0N/AJAXB 2.0:
0N/A.RS 3
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2Release Notes\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/ReleaseNotes.html
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2XJC\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/xjc.html
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2XJCTask\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/xjcTask.html
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2SchemaGen\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/schemagen.html
0N/A.TP 2
0N/A*
2509N/A.na
0N/A\f2schemagenTask\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/schemagenTask.html
4176N/A.TP 2
0N/A*
0N/A.na
0N/A\f2Sample Apps\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/samples.html
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2Changelog\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/changelog2.html
0N/A.RE
0N/A.TP 2
0N/Ao
0N/AJAXB 1.0.x:
0N/A.RS 3
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2Release Notes\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/jaxb\-1_0.html
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2Changelog\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/changelog.html
0N/A.RE
0N/A.TP 2
0N/Ao
0N/AJAXB RI Extensions:
0N/A.RS 3
4176N/A.TP 2
0N/A*
0N/A.na
0N/A\f2Runtime Properties\fP @
1178N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/vendorProperties.html
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2XJC Customizations\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/vendorCustomizations.html
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2Develop Plugins\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/developPlugins.html
0N/A.RE
0N/A.TP 2
0N/Ao
0N/AJAXB RI Schema Languages:
0N/A.RS 3
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2W3C XML Schema\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/vendorSchemaLangs.html#xschema
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2RELAX NG\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/vendorSchemaLangs.html#relaxng
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2DTD\fP @
0N/A.fi
0N/Ahttp://java.sun.com/webservices/docs/2.0/jaxb/vendorSchemaLangs.html#dtd
0N/A.RE
0N/A.TP 2
0N/Ao
4176N/AJAXB Community:
0N/A.RS 3
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2Java.net Homepage\fP @
0N/A.fi
0N/Ahttp://jaxb.dev.java.net
0N/A.TP 2
0N/A*
0N/A.na
0N/A\f2Developer interest list\fP @
0N/A.fi
0N/Ahttps://jaxb.dev.java.net/servlets/ProjectMailingListList
0N/A.TP 2
4176N/A*
4176N/A.na
4176N/A\f2FAQ\fP @
0N/A.fi
0N/Ahttps://jaxb.dev.java.net/faq/index.html
0N/A.RE
0N/A.RE
0N/A
0N/A.LP
0N/A
0N/A