Hitachi

Hitachi Application Server V10 Command Reference Guide (For Windows® Systems)


4.2.2 java_hras

The java_hras subcommand runs Java application programs that do not work with Application Server.

Synopsis

java_hras [options] class [argument...]
java_hras [options] -jar file.jar [argument...]

Storage location

Application Server installation directory\jdk\jre\bin\

Function

The java_hras subcommand starts the Java VM in a state in which the stand-alone Java program execution functionality is enabled, and then executes the Java application. If the stand-alone Java program execution functionality is enabled, the proprietary functionality required for troubleshooting is also enabled.

If the java_hras command is executed with the value ON or OFF, which are options for the proprietary functionality required for troubleshooting, that specified value takes priority. If the same option is specified more than once, then the last-specified option is used.

The following table lists the options that are enabled when the stand-alone Java program execution functionality is used.

No.

Category

Option

Java VM default value

When the stand-alone Java program execution functionality is enabled

1

Java VM log output

HitachiVerboseGC

OFF

ON

2

HitachiOutputMilliTime

OFF

ON

3

HitachiOutOfMemoryStackTrace

OFF

ON

4

HitachiJavaClassLibTrace

OFF

ON

5

Thread dumping output

HitachiLocalsInStackTrace

OFF

ON

6

HitachiLocalsSimpleFormat

OFF

ON

7

HitachiOutOfMemoryAbort

OFF

ON

When a Java command is executed, the following are different depending on whether the stand-alone Java program execution functionality is enabled.

Other than the functionality listed above, the specification for the java command is the same as when the stand-alone Java program execution functionality is not used.

Arguments

Options that can be specified are the same as the java command. However, the -Xhras option cannot be specified by itself.

options

Specifies the command-line options.

class

Specifies the name of the class to be invoked.

-jar file.jar

Specifies the name of the JAR file that will be called.

argument

Specifies the arguments passed to the main function.

Output example

Example 1

When the stack trace information of the main thread is obtained by thread-dump output.

Example 2

While executing the main method of the main class that was specified during startup, a java.lang.Exception exception error occurred which could not be caught in the main method.

Exit Status

Same as the java command.

Notes

To run the java command, use the following methods:

When the java command is executed by other methods, the command execution fails and the following message is displayed:

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 being run, it might be necessary to purchase the other product.

To run the javaw subcommand, use the following methods:

When the javaw command is executed by other methods, the command execution fails and the following message is displayed:

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 being run, it might be necessary to purchase the other product.