Cratylus
Cratylus

Reputation: 54094

Using jaxb converter tool xjc

Is xjc from the command line (having JAVA_HOME\bin in your PATH) running com.sun.tools.xjc.Driver?
I.e.
Is running the class com.sun.tools.xjc.Driver the same as running xjc?

Upvotes: 1

Views: 4558

Answers (1)

Vadzim
Vadzim

Reputation: 26200

xjc.bat or xjc.sh just call -jar jaxb-xjc.jar.

I have jaxb-ri-20071219/lib/jaxb-xjc.jar/META-INF/MANIFEST.MF:

Main-Class: com.sun.tools.xjc.XJCFacade

From the XJCFacade's source:

A shabby driver to invoke XJC1 or XJC2 depending on the command line switch.

It then tries to call com.sun.tools.xjc.Driver.

But it could have changed in newer versions. You can recheck MANIFEST.MF anyway.

Upvotes: 2

Related Questions