Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
XJC -p Option for Class Package Name
How to specify the package name for the generated Java classes with XJC (XML to Java Compiler)? I don't like the default package name "generated".
✍: FYIcenter.com
I don't like the default package name "generated" of the output Java classes
given by XJC (XML to Java Compiler),
you can change it by using the "xjc -p" option as shown below:
fyicenter> mkdir src fyicenter> ../jaxb-ri/bin/xjc.sh -p com.fyicenter.demo User.xsd -d src parsing a schema... compiling a schema... com\fyicenter\demo\ObjectFactory.java com\fyicenter\demo\User.java
Remember that:
⇒ Identify JAXB Implementation Classes
⇐ User.java - Java Data Type Class Generated by XJC
2018-05-08, 2897🔥, 0💬
Popular Posts:
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...
What Is poi-ooxml-3.5.jar? poi-ooxml-3.5.jar is one of the JAR files for Apache POI 3.5, which provi...
Apache Log4j provides the interface that applications should code to and provides the adapter compon...
What Is commons-lang3-3.1.jar? commons-lang3-3.1.jar is the JAR file for Apache Commons Lang 3.1, wh...
How to show the XML parsing flow with sax\DocumentTracer.java provided in the Apache Xerces package?...