Standard Java tools and utilities
Each Java™ Development Kit (JDK) version ships a version of the Java tools and utilities. In most cases, the Qshell version of the Java tools and utilities located in the /usr/bin directory invoke the proper version of the tool or utility based on what version of the JDK you are using.
The actual location of the Java tools
and utilities is based on the JAVA_HOME environment
variable, which determines the JDK that is used when running a Java application. The location of
the Java tools and utilities
is in one of two directories, either <JAVA_HOME>/jre/bin or <JAVA_HOME>/bin,
where <JAVA_HOME> is the value of the JAVA_HOME environment
variable. For example, if the JAVA_HOME environment
variable is set to /QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit,
indicating that IBM® Technology
for Java 6 32-bit is to be used,
then the Java tools and utilities
directories would be:
- /QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit/bin
- /QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit/jre/bin
Keep in mind these points when using the Java tools and utilities:
- If the JAVA_HOME environment variable is not set and you are using the version of the Java tool or utility that is in the /usr/bin directory, the default JDK is used. For more information about how JDKs are selected, see Support for multiple Java Development Kits (JDKs).
- Only a subset of the Java tools and utilities located in the <JAVA_HOME>/jre/bin and <JAVA_HOME>/bin directories can be found in the /usr/bin directory.
- Not all the Java tools and utilities that are supported on IBM i are supported by all JDK versions. Search the <JAVA_HOME>/jre/bin and <JAVA_HOME>/bin directories to determine if a Java tool or utility is supported for the JDK version you are using.
- Extensive documentation on the Java tools
and utilities can be found on the Sun JDK Tools and Utilities
Web site. For Java tools
and utilities that are not documented on the Sun Web site, run the Java tool or utility with the -h or -help option.
Basic tools and utilities
- appletviewer (Java Applet Viewer)
- Tests and runs applets outside a Web browser.
- apt (Annotation Processing Tool)
- Finds and executes annotation processors based on the annotations present in the set of specified source files being examined.
- extcheck (Extcheck utility)
- Detects version conflicts between a target JAR file and currently-installed extension JAR files.
- jar (Java Archive Tool)
- Combines multiple files into a single Java Archive (JAR) file.
- java (Java Interpreter)
- Runs Java classes. The Java Interpreter runs programs that are written in the Java programming language.
- javac (Java Compiler)
- Compiles programs that are written in the Java programming language into bytecode (compiled Java code).
- javadoc (Java Documentation Generator)
- Generates HTML pages of API documentation from Java source files.
- javah (C Header and Stub File Generator)
- Enables you to associate native methods with code written in the Java programming language.
- javap (Class File Disassembler)
- Disassembles compiled files and can print a representation of the bytecodes.
- javaw (Java Interpreter)
- Runs Java classes in the same way as the java command does, but does not use a console window.
- jdb (Java Debugger)
- Helps debug your Java programs. When invoked, a message is displayed indicating that the tool is not supported. For alternatives to this tool, see Debugging Java programs on IBM i.
Security tools and utilities
- ikeyman (iKeyman GUI utility)
- Allows you to manage keys, certificates, and certificate requests.
For more information, see the Security Guide
and iKeyman User's Guide
. There is also a command-line version of this utility. - ikeycmd (iKeyman command-line utility)
- Allows you to manage keys, certificates, and certificate requests
from the command line. For more information, see the Security Guide
and iKeyman User's Guide
. There is also a GUI version of this utility. - jarsigner (JAR Signing and Verification Tool)
- Generates signatures for JAR files and verifies the signatures of signed JAR files.
- keytool (Key and Certificate Management Tool)
- Manages a keystore (database) of private keys and their associated X.509 certificate chains that authenticate the corresponding public keys.
- kinit
- Obtains and caches Kerberos ticket-granting tickets. The Qshell version of this utility that is located in /usr/bin does not invoke the Java version of this utility. To determine which to use, see The kinit and ktab tools.
- klist
- Displays entries in the local credentials cache and key table. The Qshell version of this utility that is located in /usr/bin does not invoke the Java version of this utility. To determine which to use, see The kinit and ktab tools.
- ktab
- Manages the principal names and service keys stored in a local key table.
- policytool (Policy File Creation and Management Tool)
- Creates and modifies the external policy configuration files that define the security policy for your Java installation.
Internationalization tools and utilities
- native2ascii (Native-To-ASCII Converter)
- Converts a native encoding file to an ASCII file that contains characters encoded in either Latin-1 or Unicode, or both.
Remote method invocation (RMI) tools and utilities
- rmic (Java Remote Method Invocation (RMI) Stub Converter)
- Generates stubs, skeletons, and ties for remote objects. Includes RMI over Internet Inter-ORB Protocol (RMI-IIOP) support.
- rmid (RMI activation system daemon)
- Starts the activation system daemon so that objects can be registered and activated in a Java virtual machine (JVM).
- rmiregistry (Java remote object registry)
- Creates and starts a remote object registry on the specified port of the current host.
- serialver (Serial Version Command)
- Returns the serialVersionUID for one or more classes in a format that is suitable for copying into an evolving class.
Java IDL and RMI-IIOP tools and utilities
- idlj (IDL to Java Compiler)
- Generates Java bindings from a given Interface Definition Language (IDL) file.
- orbd
- Provides support for clients to transparently locate and invoke persistent objects on servers in the Common Object Request Broker Architecture (CORBA) environment.
- tnameserv (CORBA transient naming service)
- Starts the CORBA transient naming service.
Java deployment tools and utilities
- pack200
- Transforms a JAR file into a compressed pack200 file using the Java gzip compressor.
- unpack200
- Transforms a packed file produced by pack200 into a JAR file.
Java plug-in tools and utilities
- HtmlConverter (Java Plug-in HTML Converter)
- Converts an HTML page that contains applets to a format that can use the Java plug-in.
Java Web Start tools and utilities
- javaws (Java Web Start)
- Enables the deployment and automatic maintenance of Java applications. For more information, see Running Web Start
.
Java troubleshooting, profiling, monitoring and management tools and utilities
- jconsole (JConsole Monitoring and Management Tool)
- Monitors local and remote JVMs using a GUI. The tool is JMX-compliant.
- jdmpview (Cross-platform dump formatter)
- Analyzes dumps. For more information, see the Diagnostics Guide
. - jextract (Dump extractor)
- Converts a system-produced dump into a common format that can be used by jdmpview. For more information, see jdmpview.
Java Web services tools and utilities
- schemagen
- Creates a schema file for each namespace referenced in your Java classes.
- wsgen
- Generates JAX-WS portable artifacts used in JAX-WS Web services.
- wsimport
- Generates JAX-WS portable artifacts from a Web Services Description Language (WSDL) file.
- xjc
- Compiles XML Schema files.

