This page describes the hpjava command and provides a complete description of the command syntax, options, and arguments. The hpjava command is similar to the JDK java command. Specifically, this page discusses the following topics:
Syntax
hpjava [run-time_options] classname [user_program_arguments]
class Aclass { public static void main(String argv[]) { ... } }
Options
The following table lists the options and associated arguments
that you can specify with the hpjava command.
Options | Description | Default |
---|---|---|
-classpath path | Specifies the path hpjava uses to look up classes.
Overrides the default or the CLASSPATH environment
variable (if it is set). Information about the classpath
is found in the topic Loading Classes with the Classpath
Setting. The general format for path is:
For example:
|
-classpath |
-Dname=value | Redefine a property value (where name is the
name of the property whose value you want to redefine,
and value is the new value that you want to
assign to the property). For example, the following
command sets the value of the property awt.button.color
to green: hpjava -Dawt.button.color=green The hpjava command accepts any number of -D options on the command line. |
|
-help or -? | Display usage information if no other options are specified on the command line. | |
-load DLL_files | Specify a list of simple or compound DLL (.jlc or
.jll) files to initially load. The -load
option directs the VM to explicitly load the specified
.jlc or .jll files. In the case where this option is
specified more than once, only the last specifier is
honored. The DLL_files argument is a list of
platform-specific file specifiers. The VM immediately
terminates if any one of the DLLs specified on DLL_files
cannot be located.
|
|
-v[:class] | Causes hpjava to print a message to stdout each time a DLL is loaded. | |
-version | Display the build version information. | |
-X | Display help for non-standard options that are subject to change. This is a non-standard option that is subject to change. | |
-Xfastmath | Use faster math library routines. This is a non-standard option that is subject to change. | |
-Xss size | Set a maximum native stack size for any thread. Every thread that is spawned during the execution of the program passed to hpjava has size as its stack size. The default unit for size is bytes. You can modify the value of size by appending the letter K to size to specify kilobytes or by appending the letter M to specify megabytes. This is a non-standard option that is subject to change. |
Loading Classes with the Classpath
Setting
Building Executables and DLLs