HP-UX Java™ - How To Develop Java Applications for HP-UX

Recommended IDE tools for this environment are Together ControlCenter and
Metrowerks' Code Warrior
One advantage of development on a Windows (or Linux or Unix) desktop workstation
with remote targeting is that these desktops support a large number of Java™ analysis
tools that can be used to validate the source code. An excellent example of this is the
Jtest product from ParaSoft.
Prepare HP-UX for Java™ deployment
NOTE: Installing patches and changing kernel parameters should be made only by
knowledgeable HP-UX system administrators. Root access is needed for both.
There are a number of HP-UX patches that have been identified as requirements for
Java™ applications. A list of these patches can be found on the following web page:
Patch Information. Install all of the patches shown for your HP-UX version and JDK
version. Or you may install the most recent Quality Pack for your OS, which will reduce
the number of individual patches you need to install.
The Java™ environment on HP-UX requires that the kernel parameters be set to provide
adequate resources for proper execution. HP has developed a free tool, Java™
Out-of-Box, which upon installation installs startup (RC) scripts, modifies kernel
parameters, rebuilds the kernel, and reboots the system, thus providing better out-of-box
behavior for Java™.
In addition, HP has developed a free tool, HPjconfig, that will evaluate any HP-UX
server to determine if it has the necessary kernel parameter settings and OS patches
for Java™ applications. It uses the same lists of parameters and patches referenced
above and provides simple advice on any necessary changes. It will also provide a
SAM input file to allow the system administrator to make the kernel parameter changes
automatically.
Debugging a Java™ application
There are several approaches to debugging Java™ applications. The most common
methods are listed here in order of increasing sophistication.
The simplest, most popular, least expensive approach is to use
system.out.println to find out what the application is doing internally.
However, this is not a viable approach for an application that is running in
production.
The Java™ Software Development Kit on HP-UX includes a free debugger, called
JDB. It is a simple command-line tool but it does allow the developer to insert
breakpoints on a per-thread basis, inspect the values of variables and attributes,
modify values, and restart the application. Because of its dbx-like user interface,
JDB is not particularly user-friendly. IDEs or stand-alone debugger tools are easier
Prepare HP-UX for Java™ deployment 7