How do I get xjc?

So I was looking at interacting with xml files for a project I was working on and one of the things I want to do is generate Java classes from a .dtd file. After some searching, I found out that xjc should be able to do what I want, but I can't for my life know where to get the program.

I feel like the answer is sitting right in front of me, but my google-fu is really failing in hardcore right now ...

+4


source to share


4 answers


I got it when I installed java. This is probably on your system now. Look in the directory where java, javac, etc. are located.



+5


source


It's part of the JDK. Check your Java bin folder.



+2


source


xjc is a tool in JAXB that is found in Java SE, Java EE and Java Web Services, and I am sure there are many others. Read on JAXB Here

+1


source


Please note that as of Java 11, JAXB has been removed from the JDK. It must be installed separately. The ZIP file has a directory bin

where we can find tools xjc

and schemagen

.

Download link: https://javaee.github.io/jaxb-v2/

0


source







All Articles