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, 2924🔥, 0💬
Popular Posts:
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module. JDK 11 Naming module compiled cla...
commons-net-1.4.1.jar is the JAR file for Apache Commons Net 1.4.1, which implements the client side...
Smack is an Open Source XMPP (Jabber) client library for instant messaging and presence. A pure Java...
What Is javax.websocket-api-1.1. jar?javax.websocket-api-1.1. jaris the JAR file for Java API for We...
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module. JDK 11 Naming module compiled cla...