jrunscript.exe
Command line scripting engine interface. This is a command line interface to the scripting engines supported by the JDK. To query all available scripting engines, use
C:>jrunscript.exe -q Language ECMAScript 1.8 implemention "Mozilla Rhino" 1.7 release 3 PRERELEASE
native2ascii.exe
Converts files which contain characters in any encoding supported by Java into files with ASCII- or UNICODE escape notation. Suppose the file sample.property contains one line like hell=Hölle, then this file can be converted into escape notation:
C:>native2ascii sample.property hell=H\u00f6lle
serialver.exe
Generates a serial version UID for specified classes. Consider the following class:
package com.example; import java.io.Serializable; public class HelloWorld implements Serializable{ }
Then serialver can generate a serial version UID as follows:
C:>serialver com.example.HelloWorld com.example.HelloWorld: static final long serialVersionUID = -8600410498180192104L;
The static final long variable can now simply be copied into the source file so that the class has its serial version UID defined.
schemagen.exe
Creates an XML schema file (.xsd) from a .class or .java file. Given the following file:
package com.example; public class HelloWorld implements Serializable{ public String hello = "Hello"; public String[] hellos = {"World", "Moon", "Sun", "Oracle"}; }
then schemagen can create an .xsd file from this source file:
C:>schemagen com\example\HelloWorld.java Note: Writing schema1.xsd C:>type schema1.xsd <xs:schema version="1.0" xmlns:xs="https://www.w3.org/2001/XMLSchema"> <xs:complextype name="helloWorld"> <xs:sequence> <xs:element name="hello" type="xs:string" minoccurs="0" /> <xs:element name="hellos" type="xs:string" nillable="true" minoccurs="0" maxoccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:schema>
xjc.exe
Generates Java classes from an XML schema. Given the schema1.xsd file from above, this can be compiled into Java classes as follows:
C:>xjc schema1.xsd parsing a schema... compiling a schema... generated\HelloWorld.java generated\ObjectFactory.java
wsgen.exe
Reads a web service endpoint implementation (SEI) class and generates all of the required artifacts for web service deployment, and invocation.
wsimport.exe
Generates JAX-WS portable artifacts that can be packaged in a web application archive (WAR) file and provides an Ant task.