1schemagen(1)                General Commands Manual               schemagen(1)
2
3
4
5                                    NAME
6         schemagen - Java(TM) Architecture for XML Binding Schema Generator
7                             Specification Version: 2.0
8                   Reference Implementation (RI) Version: 2.0 ea3
9
10
11   Launching schemagen
12       The schema generator can be launched using the appropriate schemagen
13       shell script in the bin directory for your platform.
14
15       The current schema generator can process either Java source files or
16       class files.
17
18       We also provide an Ant task to run the schema generator - see the
19       instructions for using schemagen with Ant.
20
21          For Solaris/Linux
22
23                % path/to/jaxb/bin/schemagen.sh Foo.java Bar.java ...
24                Note: Writing schema1.xsd
25
26
27
28          For WindowsNT/2000/XP
29
30                > path\to\jaxb\bin\schemagen.bat Foo.java Bar.java ...
31                Note: Writing schema1.xsd
32
33
34
35       If your java sources/classes reference other classes, they must be
36       accessable on your system CLASSPATH environment variable, or they need
37       to be given to the tool by using the -classpath/-cp options. Otherwise
38       you will see errors when generating your schema.
39
40          Command Line Options
41
42             Usage: schemagen [-options ...] <java files>
43
44             Options:
45                 -d <path>         :  Specify where to place processor and javac generated class files
46                 -cp <path>        :  Specify where to find user specified files
47                 -classpath <path> :  Specify where to find user specified files
48                 -help             :  Display this usage message
49
50
51
52   Generated Resource Files
53       The current schema generator simply creates a schema file for each
54       namespace referenced in your Java classes. There is no way to control
55       the name of the generated schema files at this time. For that purpose,
56       use the schema generator ant task.
57

See Also

59          o JAXB 2.0:
60
61             * Release Notes @
62               http://java.sun.com/webservices/docs/2.0/jaxb/ReleaseNotes.html
63
64             * XJC @
65               http://java.sun.com/webservices/docs/2.0/jaxb/xjc.html
66
67             * XJCTask @
68               http://java.sun.com/webservices/docs/2.0/jaxb/xjcTask.html
69
70             * SchemaGen @
71               http://java.sun.com/webservices/docs/2.0/jaxb/schemagen.html
72
73             * schemagenTask @
74               http://java.sun.com/webservices/docs/2.0/jaxb/schemagen
75               Task.html
76
77             * Sample Apps @
78               http://java.sun.com/webservices/docs/2.0/jaxb/samples.html
79
80             * Changelog @
81               http://java.sun.com/webservices/docs/2.0/jaxb/changelog2.html
82
83          o JAXB 1.0.x:
84
85             * Release Notes @
86               http://java.sun.com/webservices/docs/2.0/jaxb/jaxb-1_0.html
87
88             * Changelog @
89               http://java.sun.com/webservices/docs/2.0/jaxb/changelog.html
90
91          o JAXB RI Extensions:
92
93             * Runtime Properties @
94               http://java.sun.com/webservices/docs/2.0/jaxb/vendorProper
95               ties.html
96
97             * XJC Customizations @
98               http://java.sun.com/webservices/docs/2.0/jaxb/vendorCustomiza
99               tions.html
100
101             * Develop Plugins @
102               http://java.sun.com/webservices/docs/2.0/jaxb/developPlug
103               ins.html
104
105          o JAXB RI Schema Languages:
106
107             * W3C XML Schema @
108               http://java.sun.com/webservices/docs/2.0/jaxb/ven
109               dorSchemaLangs.html#xschema
110
111             * RELAX NG @
112               http://java.sun.com/webservices/docs/2.0/jaxb/ven
113               dorSchemaLangs.html#relaxng
114
115             * DTD @
116               http://java.sun.com/webservices/docs/2.0/jaxb/ven
117               dorSchemaLangs.html#dtd
118
119          o JAXB Community:
120
121             * Java.net Homepage @
122               http://jaxb.dev.java.net
123
124             * Developer interest list @
125               https://jaxb.dev.java.net/servlets/ProjectMailingListList
126
127             * FAQ @
128               https://jaxb.dev.java.net/faq/index.html
129
130
131                                  07 Aug 2006                     schemagen(1)
Impressum