4176N/A." Copyright (c) 2005, 2011, Oracle and/or its affiliates. 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.
0N/A."
2362N/A." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A." or visit www.oracle.com if you need additional information or have any
2362N/A." questions.
1178N/A."
4880N/A.TH schemagen 1 "16 Mar 2012"
0N/A
0N/A.LP
1178N/A.SH "Name"
1178N/Aschemagen \- Java(TM) Architecture for XML Binding Schema Generator
1178N/A.LP
1178N/A.LP
1178N/A\f3Specification Version:\fP 2.1
0N/A.br
1178N/A\f3Implementation Version:\fP 2.1.3
0N/A.LP
4176N/A.SH "Launching 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
1178N/AWe also provide an Ant task to run the schema generator \- see the instructions for
1178N/A.na
1178N/A\f2using schemagen with Ant\fP @
1178N/A.fi
1178N/Ahttps://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
0N/A.LP
0N/A.nf
0N/A\f3
0N/A.fl
1178N/A% schemagen.sh Foo.java Bar.java ...
0N/A.fl
1178N/ANote: Writing schema1.xsd
0N/A.fl
0N/A\fP
0N/A.fi
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.
0N/A.LP
4176N/A.SS
4176N/ACommand Line Options
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
4176N/AOptions:
4176N/A.fl
4176N/A \-d <path> : specify where to place processor and javac generated class files
0N/A.fl
4176N/A \-cp <path> : specify where to find user specified files
4176N/A.fl
4176N/A \-classpath <path> : specify where to find user specified files
0N/A.fl
4176N/A \-encoding <encoding> : specify encoding to be used for apt/javac invocation
4176N/A.fl
4176N/A
0N/A.fl
4176N/A \-episode <file> : generate episode file for separate compilation
0N/A.fl
4176N/A \-version : display version information
4176N/A.fl
4176N/A \-help : display this usage message
0N/A.fl
0N/A\fP
0N/A.fi
0N/A
0N/A.LP
4176N/A.SH "Generated Resource Files"
0N/A.LP
0N/A.LP
1178N/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
1178N/A.na
1178N/A\f2the schema generator ant task\fP @
1178N/A.fi
1178N/Ahttps://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html.
0N/A.LP
4176N/A.SH "Name"
4176N/ASee Also
0N/A.LP
0N/A.RS 3
0N/A.TP 2
0N/Ao
1178N/ARunning the schema generator (schemagen): [
0N/A.na
1178N/A\f2command\-line instructions\fP @
0N/A.fi
1178N/Ahttps://jaxb.dev.java.net/nonav/2.1.3/docs/schemagen.html,
0N/A.na
1178N/A\f2using the SchemaGen Ant task\fP @
0N/A.fi
1178N/Ahttps://jaxb.dev.java.net/nonav/2.1.3/docs/schemagenTask.html]
0N/A.TP 2
0N/Ao
0N/A.na
1178N/A\f2Java Architecture for XML Binding (JAXB)\fP @
0N/A.fi
4880N/Ahttp://docs.oracle.com/javase/7/docs/technotes/guides/xml/jaxb/index.html
0N/A.RE
0N/A
0N/A.LP
0N/A