So I've been looking at interfacing with xml files for a project I've been 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 cannot for the life of me find out where to get the program itself.
I feel like the answer is sitting right in front of me, but my google-fu is really failing me hardcore right now...
Note that since Java 11, the JAXB was removed from the JDK. It has to be separately installed. There is a bin
directory in the ZIP file where we can find the xjc
and schemagen
tools.
Download link: https://javaee.github.io/jaxb-v2/