Tools Home Page NonStop Server for Java Tools Reference Pages Abstract This document consists of this title page, a table of contents, and the Tools Reference Pages for the HP NonStop™ Server for Java™, based on Java 2 Platform, Standard Edition, SDK 1.4.2. Product Version For TNS/R, HP NonStop Server for Java 4.2, based on Java 2 Platform, Standard Edition 4.2 For TNS/E, HP NonStop Server for Java 4.2, based on Java 2 Platform, Standard Edition 4.
425948-004 NonStop Server for Java 3.1 September 2002 425948-005 NonStop Server for Java 3.1 Update 1 December 2002 526239-001 NonStop Server for Java based on Java 2 Platform, Standard Edition, SDK 1.4.1) 1.0 October 2003 NonStop Server for Java based on Java 2 Platform, Standard Edition, SDK 1.4.2), Version 2.0 December 2004 For TNS/R, HP NonStop Server for Java, based on Java 2 Platform, Standard Edition, SDK 1.4.2, Version 2.
Open Software Foundation, OSF, the OSF logo, OSF/1, OSF/Motif, and Motif are trademarks of the Open Software Foundation, Inc. OSF MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THE OSF MATERIAL PROVIDED HEREIN, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. OSF shall not be liable for errors contained herein or for incidental consequential damages in connection with the furnishing, performance, or use of this material.
Export of the information contained in this publication may require authorization from the U.S. Department of Commerce. HEWLETT-PACKARD DEVELOPMENT COMPANY L.P. SHALL NOT BE LIABLE FOR TECHNICAL OR EDITORIAL ERRORS OR OMISSIONS CONTAINED HEREIN. THE INFORMATION IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND AND IS SUBJECT TO CHANGE WITHOUT NOTICE. THE PRODUCT WARRANTIES ARE SET FORTH IN THE EXPRESS LIMITED WARRANTY STATEMENTS ACCOMPANYING SUCH PRODUCTS.
Title Page NonStop Server for Java Tools Reference Pages Command Tool Name Function extcheck JAR Conflict Detection Tool Detects version conflicts between a target Java Archive (JAR) file and currently installed extension JAR files. idlj IDL-to-Java Compiler Generates Java bindings from a specified IDL file. jar Java Archive Tool Combines multiple files into a single JAR file and retrieves files from a JAR file.
klist Kerberos Tool Allows the viewing of entries in the local credentials cache and key table. ktab Kerberos Key Table Manager Allows for managing the principal names and service keys stored in a local key table. native2ascii Native-to-ASCII Converter Converts a file with native-encoded characters to one with Unicode-encoded characters. nsjps NonStop Java Virtual Machine Process Status Tool Lists and monitors the Java processes running on a system.
Title Page | Tools Home Page extcheck: JAR Conflict Detection Tool The extcheck tool detects version conflicts between a target Java Archive (JAR) file and currently installed extension JAR files. For a complete description of the tool and its use, see the Sun Microsystems documentation for extcheck. Synopsis extcheck [ -verbose ] targetfile.jar See Also: jar Title Page | Tools Home Page NonStop Server for Java Tools Reference Pages (529775-002) © 2010 Hewlett-Packard Development Company L.P.
Title Page | Tools Home Page idlj: IDL-to-Java Compiler The idlj tool generates Java bindings from a specified IDL (Interface Definition Language) file. For a complete description of the tool and its use, see the Sun Microsystems documentation for idlj. Synopsis idlj [ options ] idl-file Title Page | Tools Home Page NonStop Server for Java Tools Reference Pages (529775-002) © 2010 Hewlett-Packard Development Company L.P. All rights reserved.
Title Page | Tools Home Page jar: Java Archive Tool The jar tool combines multiple files into a single Java Archive (JAR) file or retrieves files from a JAR file. For a complete description of the tool and its use, see the Sun Microsystems documentation for jar. Synopsis jar [ options ] [ jar-file ] [ manifest-file ] [ file | directory ] ... Title Page | Tools Home Page NonStop Server for Java Tools Reference Pages (529775-002) © 2010 Hewlett-Packard Development Company L.P. All rights reserved.
Title Page | Tools Home Page jarsigner: JAR Signing and Verification Tool The jarsigner tool generates signatures for Java Archive (JAR) files and verifies the signatures of signed JAR files. For a complete description of the tool and its use, see the Sun Microsystems documentation for jarsigner.
Title Page | Tools Home Page java: Java Application Launcher ● Synopsis ● Deviations from Standard Java Options ● Nonstandard Java Options ● Deviations from Nonstandard Java Options ● Deviations from Nonstandard Java -XX Options ● HP Extensions to Standard Java Options ● See Also The java tool launches a Java application by starting a Java run-time environment, loading a specified class, and invoking that class' main method.
Selects whether the program is to be run in a 32-bit or 64-bit environment. Note: These options are not valid with NonStop Server for Java 4, which uses only the 32-bit environment to run Java programs. Nonstandard Java Options The following nonstandard options are shown for your convenience. -Xssn Sets the thread stack size. Every thread spawned while a Java program runs has its own stack. This thread stack is shared by Java program code, any native (JNI) code, and the Java VM code.
therefore, is disabled. If you specify this option, the Java VM exits with the error: -XX:+UseAdaptiveSizePolicy option is not supported on this platform. -XX:+AggressiveHeap Obtains the platform resources and configures the heap layout accordingly, uses parallel collector, and enables AdaptiveSizePolicy option. This option applies only for a parallel collector and, therefore, is disabled.
NonStop Server for Java Tools Reference Pages (529775-002) © 2010 Hewlett-Packard Development Company L.P. All rights reserved.
Title Page | Tools Home Page javac: Java Programming Language Compiler The javac tool compiles Java source code into bytecode. For a complete description of the tool and its use, see the Sun Microsystems documentation for javac. Synopsis javac [ options ] [ sourcefiles ] [ @argfiles ] Arguments may be in any order. options Command-line options. sourcefiles One or more source files to be compiled (such as MyClass.java). @argfiles One or more files that list options and source files.
Title Page | Tools Home Page javadoc: Java API Documentation Generator The javadoc tool generates API documentation in HTML format from Java source code. For a complete description of the tool and its use, see the Sun Microsystems documentation for javadoc. Synopsis javadoc [ options ] { package | class.java } ...
Title Page | Tools Home Page javah: C Header and Stub File Generator The javah tool generates C header files and stub C source files from a Java class. These files provide the connections that allow your Java code and C code to interact. For a complete description of the tool and its use, see the Sun Microsystems documentation for javah. Synopsis For files that are needed to implement native methods: javah [ options ] fully-qualified-classname ...
Title Page | Tools Home Page javap: Java Class File Disassembler The javap tool disassembles compiled Java files. For a complete description of the tool and its use, see the Sun Microsystems documentation for javap. Synopsis javap [ options ] class ... See Also: ● javac ● rmic ● java ● jdb ● javah ● javadoc Title Page | Tools Home Page NonStop Server for Java Tools Reference Pages (529775-002) © 2010 Hewlett-Packard Development Company L.P. All rights reserved.
Title Page | Tools Home Page jdb: Java Debugger The jdb tool helps you find and fix errors in Java programs. For a complete description of the tool and its use, see the Sun Microsystems documentation for jdb.
Starting a jdb Session There are many ways to start a jdb session. The most frequent way is to have jdb launch a new Java VM with the main class of application to be debugged. You do this by substituting the command jdb for the command java in the command line.
Basic jdb Commands The following is a list of the basic jdb commands. The Java debugger supports other commands, which you can list by using the jdb help command. {help | ?} Displays the list of recognized commands with a brief description. run After starting jdb and setting any necessary breakpoints, you can use this command to start the execution of the debugged application. This command is available only when jdb launches the debugged application (as opposed to attaching to an existing Java VM).
are printed, as well as an index that can be used for other commands, for example: 4. (java.lang.Thread)0x1 main running In this example, the thread index is 4, the thread is an instance of java.lang.Thread, the thread name is main, and it is currently running. thread Select a thread to be the current thread. Many jdb commands are based on the setting of the current thread. The thread is specified with the thread index described in the threads command.
Stepping The step command advances execution to the next line whether it is in the current stack frame or a called method. The next command advances execution to the next line in the current stack frame. Exceptions When an exception occurs for which there is not a catch statement anywhere in the throwing thread's call stack, the Java VM normally prints an exception trace and exits. When running under jdb, however, control returns to jdb at the offending throw.
connector. -launch Launches the debugged application immediately upon startup of jdb. This option removes the need for using the run command. The debugged application is launched and then stopped just before the initial application class is loaded. At that point you can set any necessary breakpoints and use the cont to continue execution. -connect connector-name:name1=value1,... Connects to the target VM through a named connector that uses the listed argument values.
-X option Sets a nonstandard target VM option. Connecting for Remote Debugging i. The Debugger launches the target Java VM. -launch jdb -launch ClassName ii. The Debugger attaches to a previously running Java VM. -attach jdb -attach hostname:portnum For this command, the JVM must already be running as a server at To start the server, use the following command : java -Xnoagent -Xdebug -Djava.
java -Xnoagent -Xdebug -Djava.compiler=NONE \ -Xrunjdwp:transport=dt_socket,\ address=hostname:portnum ClassName Transports A Java Platform Debugger Architecture (JPDA) transport is a form of inter-process communication used by a debugger application and the debuggee. NonStop Server for Java 4 provides a socket transport that uses the standard TCP/IP sockets to communicate between debugger and the debuggee. NonStop Server for Java 4 defaults to socket transport.
Title Page | Tools Home Page keytool: Key and Certificate Management Tool The keytool tool manages a keystore (database) of private keys and their associated X.509 certificate chains authenticating the corresponding public keys. For a complete description of the tool and its use, see the Sun Microsystems documentation for keytool.
Title Page | Tools Home Page kinit: Kerberos Tool The kinit tool obtains and caches Kerberos ticket-granting tickets. Kerberos is an authentication system to enable two parties to exchange private information across an otherwise open network. For a complete description of the tool and its use, see the Sun Microsystems documentation for kinit.
Title Page | Tools Home Page klist: Kerberos Display Entries in Credentials Cache and keytab The klist tool allows you to view entries in the local credentials cache and key table. For a complete description of the tool and its use, see the Sun Microsystems documentation for klist. Synopsis klist [ commands ] Title Page | Tools Home Page NonStop Server for Java Tools Reference Pages (529775-002) © 2010 Hewlett-Packard Development Company L.P. All rights reserved.
Title Page | Tools Home Page ktab: Kerberos Key Table Manager The ktab tool allows you to manage the principal names and service keys stored in a local key table. For a complete description of the tool and its use, see the Sun Microsystems documentation for ktab. Synopsis ktab [ commands ] Title Page | Tools Home Page NonStop Server for Java Tools Reference Pages (529775-002) © 2010 Hewlett-Packard Development Company L.P. All rights reserved.
Title Page | Tools Home Page native2ascii: Native-to-ASCII Converter The native2ascii tool converts a file that has native-encoded characters (characters that are not Latin-1 and not Unicode) to a file with Unicode-encoded characters. For a complete description of the tool and its use, see the Sun Microsystems documentation for native2ascii.
Title Page | Tools Home Page nsjps: NonStop Java Virtual Machine Process Status Tool (NSJPS) The NSJPS tool is a process status tool that lists and monitors the Java processes running on a system. Synopsis nsjps [ ] The following options are supported: -cpu Lists the Java processes running on the CPU. -user Lists the Java processes owned by a user. -heap { < | = | > } Lists the Java processes running with the heap specified in the argument.
-delay
Title Page | Tools Home Page orbd: Object Request Broker Daemon The Server Manager included with the ordb tool enables clients to transparently locate and invoke persistent objects on servers in the CORBA environment. For a complete description of the tool and its use, see the Sun Microsystems documentation for orbd.
Title Page | Tools Home Page rmic: Java RMI Compiler The rmic tool generates stubs and skeletons for remote objects that use either the JRMP or Internet Inter-ORB Protocol (IIOP). The rmic tool also generates Object Management Group (OMG) Interface Definition Language (IDL). For a complete description of the tool and its use, see the Sun Microsystems documentation for rmic. Synopsis rmic [ options ] package-qualified-classname ...
Title Page | Tools Home Page rmid: Java RMI Activation System Daemon The rmid tool starts the activation system daemon that allows objects to be registered and activated in a Java virtual machine (VM). For a complete description of the tool and its use, see the Sun Microsystems documentation for rmid.
Title Page | Tools Home Page rmiregistry: Java Remote Object Registry The rmiregistry tool starts a remote object registry on the specified port on the current host. For a complete description of the tool and its use, see the Sun Microsystems documentation for rmiregistry. Synopsis rmiregistry [ port ] See Also: ● java ● java.rmi.registry.LocateRegistry ● java.rmi.
Title Page | Tools Home Page serialver: Serial Version Command The serialver tool returns the serialVersionUID of one or more classes. For a complete description of the tool and its use, see the Sun Microsystems documentation for serialver. Synopsis serialver [ option ] [ classname ... ] See Also: ● java.io.ObjectStreamClass Title Page | Tools Home Page NonStop Server for Java Tools Reference Pages (529775-002) © 2010 Hewlett-Packard Development Company L.P. All rights reserved.
Title Page | Tools Home Page servertool: Java IDL Server Tool The servertool tool provides a command-line interface for application programmers to register, unregister, start up, and shut down a persistent server. For a complete description of the tool and its use, see the Sun Microsystems documentation for servertool.
Title Page | Tools Home Page tnameserv: Naming Service Access The tnameserv tool starts the Java Interface Definition Language (IDL) name server to provide access to the CORBA Common Object Services (COS) Naming Service. For a complete description of the tool and its use, see the Sun Microsystems documentation for Naming Service. Synopsis tnameserv [ -ORBInitialPort n ] Title Page | Tools Home Page NonStop Server for Java Tools Reference Pages (529775-002) © 2010 Hewlett-Packard Development Company L.P.