-
×InformationWindows update impacting certain printer icons and names. Microsoft is working on a solution.
Click here to learn moreInformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center.
-
×InformationWindows update impacting certain printer icons and names. Microsoft is working on a solution.
Click here to learn moreInformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center.
Create an account on the HP Community to personalize your profile and ask a question
08-30-2016 12:04 PM
Just curious if anyone has built the XSDs into a jar file and wouldnt mind sharing
Im in the process and will share when Im done but figured if anyone had it already it might save me some time
Solved! Go to Solution.
Accepted Solutions
09-06-2016 11:39 AM
in the end our jar has our namespace so i cannot share it
but the steps arent to hard
first install eclipse and ensure its version and the jdk you are pointing to are fairly new such as what i have:
Eclipse Java EE IDE for Web Developers.
Version: Neon Release (4.6.0)
pointing to (preferences > java > installed JRE):
JDK 1.8.0.91
Create a new java project. Usually resources is not on the build path so make sure to add it
copy/paste all xsd files to the resources directory
refresh view in eclipse and make sure it shows the list of xsd's in the resource folder
now you can right click any one of them and go to Generate >JAXB classes
youll need to select a project and give a namespace but thats about it, click finish and it will create a jAXB annotated java class for ya.
FYI there are other (better) ways, including an xjc maven tast/plugin. but i couldnt get the other methods to work so idk what to say. other then right clicking and going to generate kinda sucks for 150 some odd files.
09-06-2016 11:39 AM
in the end our jar has our namespace so i cannot share it
but the steps arent to hard
first install eclipse and ensure its version and the jdk you are pointing to are fairly new such as what i have:
Eclipse Java EE IDE for Web Developers.
Version: Neon Release (4.6.0)
pointing to (preferences > java > installed JRE):
JDK 1.8.0.91
Create a new java project. Usually resources is not on the build path so make sure to add it
copy/paste all xsd files to the resources directory
refresh view in eclipse and make sure it shows the list of xsd's in the resource folder
now you can right click any one of them and go to Generate >JAXB classes
youll need to select a project and give a namespace but thats about it, click finish and it will create a jAXB annotated java class for ya.
FYI there are other (better) ways, including an xjc maven tast/plugin. but i couldnt get the other methods to work so idk what to say. other then right clicking and going to generate kinda sucks for 150 some odd files.
Didn't find what you were looking for? Ask the community