Hitachi

Hitachi Application Server V10 Definition Reference Guide (For UNIX® Systems)


7.15.1 -Xhras

-Xhras is an option that can be used for the java and javaw commands. This option executes Java application programs.

Description

Important note

If you are using a Java program that is not related to Application Server in an Application Server execution environment (an environment other than the application development environment), to use this option, separately purchase Application Server - Optional License for Java.

If you execute the java or javaw command with this option specified, you will be able to execute Java application programs. When a Java application program is executed, the following options for outputting Java VM operation information are automatically specified:

You can execute Java application programs by using the java command, the java_hras command, or the javaw command. The following shows how to execute each of these commands.

To execute the java command:

Use either of the methods below.

  • Execute the command with the -Xhras option specified.

  • Execute the command with the JAVA_HRAS environment variable set.

If you execute the command by using a method other than the above, the command fails and the following message is output:

Java command cannot be used except in some special cases.
When starting a Java program, use the java_hras command, etc.
Depending on the Java program executed,
it might be necessary to purchase the other product.
To execute the java_hras command:

Execute the java_hras command in installation_directory_for_Application_Server/jdk/jre/bin/.

The functionality of the java_hras command is equivalent to that of the java command. Unlike the java command, you do not need to specify the -Xhras option or the JAVA_HRAS environment variable when executing the java_hras command.

To execute the javaw command:

Use either of the methods below.

  • Execute the command with the -Xhras option specified.

  • Execute the command with the JAVAW_HRAS environment variable set.

If you execute the command by using a method other than the above, the command fails and the following message is output:

Javaw command cannot be used except in some special cases.
When starting a Java program, use the java_hras command, etc.
Depending on the Java program executed,
it might be necessary to purchase the other product.

Syntax

-Xhras

Default value

If the definition item is omitted:

Nothing is set.

Notes

To specify this option and another option at the same time, specify this option before the other option.